Skip to content

Commit

Permalink
limit avoiding the flag to macos/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
kammoh authored and johanvdhaegen committed Oct 23, 2021
1 parent 74d1678 commit f0bfc48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/verible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def install
--jobs=#{ENV.make_jobs}
--compilation_mode=opt
]
if not OS.mac? or not Hardware::CPU.arm?
bazel_args << "--copt=-march=native"
end
system "bazel", "build", *bazel_args, "//..."
system "bazel", "test", *bazel_args, "//..."
system "bazel", "run", *bazel_args, "//:install", "--", bin.to_s
Expand Down

0 comments on commit f0bfc48

Please sign in to comment.