Skip to content

Commit 8013822

Browse files
authored
Strip local file paths from builds.
Differential Revision: D66120398 Pull Request resolved: pytorch#6937
1 parent 7278519 commit 8013822

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)