From e958ba21c087dec0411bb1ded6f6962c260847d9 Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Fri, 27 Jun 2025 21:08:44 -0700 Subject: [PATCH] Fix apple frameworks by patching header Patch `executorch/runtime/core/portable_type/c10/torch/standalone/macros/Export.h` header after torch pin bump #11968 --- scripts/build_apple_frameworks.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build_apple_frameworks.sh b/scripts/build_apple_frameworks.sh index c3d5490d190..b98832a2266 100755 --- a/scripts/build_apple_frameworks.sh +++ b/scripts/build_apple_frameworks.sh @@ -179,9 +179,11 @@ sed -i '' '1i\ #define C10_USING_CUSTOM_GENERATED_MACROS ' \ "$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10/macros/Macros.h" \ -"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10/macros/Export.h" +"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10/macros/Export.h" \ +"$HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/torch/standalone/macros/Export.h" cp -r $HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/c10 "$HEADERS_ABSOLUTE_PATH/" +cp -r $HEADERS_ABSOLUTE_PATH/executorch/runtime/core/portable_type/c10/torch "$HEADERS_ABSOLUTE_PATH/" cp "$SOURCE_ROOT_DIR/extension/apple/ExecuTorch/Exported/"*.h "$HEADERS_ABSOLUTE_PATH/executorch"