Skip to content

Commit 22df674

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Strip local file paths from builds.
Summary: This facilitates mapping the sources for debug builds. Differential Revision: D66120398
1 parent ee74d06 commit 22df674

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/build_apple_frameworks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ cmake_build() {
154154
-DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN" \
155155
-DCMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD="c++17" \
156156
-DCMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY="libc++" \
157+
-DCMAKE_C_FLAGS="-ffile-prefix-map=$SOURCE_ROOT_DIR=executorch -fdebug-prefix-map=$SOURCE_ROOT_DIR=executorch" \
158+
-DCMAKE_CXX_FLAGS="-ffile-prefix-map=$SOURCE_ROOT_DIR=executorch -fdebug-prefix-map=$SOURCE_ROOT_DIR=executorch" \
157159
-DPYTHON_EXECUTABLE="$PYTHON" \
158160
-DFLATC_EXECUTABLE="$FLATC" \
159161
-DEXECUTORCH_BUILD_COREML=$COREML \

0 commit comments

Comments
 (0)