Skip to content

Commit d128da0

Browse files
authored
Fix apple frameworks by patching header (#12092)
Patch `executorch/runtime/core/portable_type/c10/torch/standalone/macros/Export.h` header after torch pin bump #11968
1 parent cf0bfd2 commit d128da0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build_apple_frameworks.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,11 @@ sed -i '' '1i\
179179
#define C10_USING_CUSTOM_GENERATED_MACROS
180180
' \
181181
"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10/macros/Macros.h" \
182-
"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10/macros/Export.h"
182+
"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10/macros/Export.h" \
183+
"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/torch/standalone/macros/Export.h"
183184

184185
cp -r $HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10 "$HEADERS_ABSOLUTE_PATH/"
186+
cp -r $HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/torch "$HEADERS_ABSOLUTE_PATH/"
185187

186188
cp "$SOURCE_ROOT_DIR/extension/apple/ExecuTorch/Exported/"*.h "$HEADERS_ABSOLUTE_PATH/executorch"
187189

0 commit comments

Comments
 (0)