From 55483d14870357ab194667199e0d095af376494d Mon Sep 17 00:00:00 2001 From: huangji Date: Tue, 8 Apr 2025 18:11:10 +0800 Subject: [PATCH] delete __FILE_NAME__ macro definition Signed-off-by: huangji --- CMakeLists.txt | 2 +- src/storage/gstor/CMakeLists.txt | 2 +- src/storage/gstor/zekernel/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aefdec..d27d2ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ endif () set(CMAKE_INSTALL_PREFIX $ENV{dcc_install_prefix}) -set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS} -D__FILE_NAME__='\"$(notdir $(subst .o,,$(abspath $@)))\"'" ) +set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}" ) add_compile_options(-fPIC -Wall -MMD -fno-strict-aliasing -fsigned-char -fms-extensions -lpthread) add_compile_definitions(_GNU_SOURCE _LARGEFILE64_SOURCE KNL_PREFIX _REENTRANT __PERF_STAT__) diff --git a/src/storage/gstor/CMakeLists.txt b/src/storage/gstor/CMakeLists.txt index a84ffe8..e1bbd85 100644 --- a/src/storage/gstor/CMakeLists.txt +++ b/src/storage/gstor/CMakeLists.txt @@ -109,7 +109,7 @@ set(3rd_libzstd "zstd") set(3rd_libssl "ssl") set(3rd_lib_crypto "crypto") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread -D__FILE_NAME__='\"$(notdir $(subst .o,,$(abspath $@)))\"'") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread") add_compile_options(-fno-common) add_compile_options(-Wtrampolines) add_compile_options(-freg-struct-return) diff --git a/src/storage/gstor/zekernel/CMakeLists.txt b/src/storage/gstor/zekernel/CMakeLists.txt index c9457fd..0abcd13 100644 --- a/src/storage/gstor/zekernel/CMakeLists.txt +++ b/src/storage/gstor/zekernel/CMakeLists.txt @@ -110,7 +110,7 @@ set(3rd_libssl "ssl") set(3rd_lib_crypto "crypto") set(3rd_libpcre "pcre") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread -D__FILE_NAME__='\"$(notdir $(subst .o,,$(abspath $@)))\"'") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread") add_compile_options(-fno-common) add_compile_options(-Wtrampolines) add_compile_options(-freg-struct-return) -- Gitee