Skip to content

Commit 06c0fa3

Browse files
swolchokfacebook-github-bot
authored andcommitted
Unbreak Intel Apple Buck builds (#5431)
Summary: Pull Request resolved: #5431 The code is gated on `#ifdef __aarch64__`, but the `-march` flag wasn't. Reviewed By: cccclai Differential Revision: D62884370 fbshipit-source-id: 944c801dd1f140a652e4cd06c7fe12ab1b85ef64
1 parent 0658dce commit 06c0fa3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kernels/optimized/lib_defs.bzl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,11 @@ def define_libs():
156156
],
157157
),
158158
],
159-
fbobjc_compiler_flags = [
160-
"-march=armv8+bf16",
159+
fbobjc_platform_compiler_flags = [
160+
(
161+
".*arm64.*",
162+
["-march=armv8+bf16"],
163+
),
161164
],
162165
fbobjc_exported_preprocessor_flags = [
163166
"-DET_BUILD_WITH_BLAS",

0 commit comments

Comments
 (0)