Skip to content

Commit

Permalink
Fix linker flags. (pytorch#5689)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#5689

We have to force load the optimized kernels first to avoid conflicts with portable.

Reviewed By: guangy10

Differential Revision: D63473757

fbshipit-source-id: d472e360bb90885b3ea0f8c01bf7fb791f1003c0
  • Loading branch information
shoumikhin authored and facebook-github-bot committed Sep 26, 2024
1 parent 4dcee85 commit 1cf3da3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/apple/Benchmark/Tests/Tests.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ OTHER_LDFLAGS[sdk=iphonesimulator*] = $(inherited) \
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-simulator-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-simulator-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_custom-simulator-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_portable-simulator-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_optimized-simulator-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_quantized-simulator-release.a

OTHER_LDFLAGS[sdk=iphoneos*] = $(inherited) \
Expand All @@ -13,7 +13,7 @@ OTHER_LDFLAGS[sdk=iphoneos*] = $(inherited) \
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-ios-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_custom-ios-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_portable-ios-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_optimized-ios-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_quantized-ios-release.a

OTHER_LDFLAGS[sdk=macos*] = $(inherited) \
Expand All @@ -22,5 +22,5 @@ OTHER_LDFLAGS[sdk=macos*] = $(inherited) \
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-macos-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-macos-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_custom-macos-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_portable-macos-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_optimized-macos-release.a \
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_quantized-macos-release.a

0 comments on commit 1cf3da3

Please sign in to comment.