Skip to content

Commit 9f8ea7c

Browse files
committed
deno: reduce linux workaround
1 parent 05f1c11 commit 9f8ea7c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Formula/d/deno.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ def install
6161

6262
# use our clang version, and disable lld because the build assumes the lld
6363
# supports features from newer clang versions (>=20)
64-
ENV["GN_ARGS"] = "clang_version=#{llvm.version.major}"
65-
if OS.mac?
66-
ENV.append "GN_ARGS", "use_lld=false"
67-
else
68-
ENV.append "GN_ARGS", "use_lld=true"
69-
ENV.delete "RUSTFLAGS"
70-
end
64+
ENV["GN_ARGS"] = "clang_version=#{llvm.version.major} use_lld=#{OS.linux?}"
7165

7266
system "cargo", "install", "--no-default-features", "-vv", *std_cargo_args(path: "cli")
7367
generate_completions_from_executable(bin/"deno", "completions")

0 commit comments

Comments
 (0)