Skip to content

Commit 1af16cd

Browse files
authored
Fix flags in apple_common.cmake (#11643)
1 parent f7d82df commit 1af16cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/cmake/preset/apple_common.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++${CMAKE_CXX_STANDARD}"
88
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
99

1010
# Clean up the paths LLDB sees in DWARF.
11-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -gno-record-gcc-switches")
12-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -gno-record-gcc-switches")
11+
add_compile_options(
12+
-ffile-prefix-map=${PROJECT_SOURCE_DIR}=/executorch
13+
-fdebug-prefix-map=${PROJECT_SOURCE_DIR}=/executorch
14+
)
1315

1416
set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
1517
set_overridable_option(EXECUTORCH_BUILD_COREML ON)

0 commit comments

Comments
 (0)