From 988b3f24f2efc5933bb52a66404274338cda6f5e Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 18 Nov 2024 14:19:16 -0800 Subject: [PATCH] Strip local file paths from builds. (#6937) Summary: This facilitates mapping the sources for debug builds. Differential Revision: D66120398 --- build/build_apple_frameworks.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/build_apple_frameworks.sh b/build/build_apple_frameworks.sh index 0d5df750505..5746adb5a1f 100755 --- a/build/build_apple_frameworks.sh +++ b/build/build_apple_frameworks.sh @@ -154,6 +154,8 @@ cmake_build() { -DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN" \ -DCMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD="c++17" \ -DCMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY="libc++" \ + -DCMAKE_C_FLAGS="-ffile-prefix-map=$SOURCE_ROOT_DIR=/executorch -fdebug-prefix-map=$SOURCE_ROOT_DIR=/executorch" \ + -DCMAKE_CXX_FLAGS="-ffile-prefix-map=$SOURCE_ROOT_DIR=/executorch -fdebug-prefix-map=$SOURCE_ROOT_DIR=/executorch" \ -DPYTHON_EXECUTABLE="$PYTHON" \ -DFLATC_EXECUTABLE="$FLATC" \ -DEXECUTORCH_BUILD_COREML=$COREML \