Skip to content

Commit

Permalink
fastfec: remove zig bottle target
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
cho-m and carlocab committed Sep 17, 2024
1 parent 024014d commit e5e0e2c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Formula/f/fastfec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ def install
resource("zig").stage do
ENV["NIX_LDFLAGS"] = ENV["HOMEBREW_RPATH_PATHS"].split(":").map { |p| "-rpath #{p}" }.join(" ") if OS.linux?

cpu = case Hardware.oldest_cpu
when :arm_vortex_tempest then "apple_m1" # See `zig targets`.
else Hardware.oldest_cpu
end

args = ["-DZIG_STATIC_LLVM=ON"]
args << "-DZIG_TARGET_MCPU=#{cpu}" if build.bottle?
args << "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-ld_classic" if DevelopmentTools.clang_build_version >= 1500
# Make sure `llvm@16` is used.
if OS.linux?
Expand Down

0 comments on commit e5e0e2c

Please sign in to comment.