Skip to content

Commit

Permalink
llvm: fix brew style
Browse files Browse the repository at this point in the history
Needed for Homebrew/brew#9408.
  • Loading branch information
MikeMcQuaid committed Dec 16, 2020
1 parent 5779e6e commit cdeec75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def caveats
# On the other hand, note that a fully qualified path to `dylib` or `tbd` is OK, e.g.,
# `/usr/local/lib/libxml2.tbd` or `/usr/local/lib/libxml2.dylib`.
ext = shared_library("")
shell_output("#{bin}/llvm-config --system-libs").chomp.strip.split(" ").each do |lib|
shell_output("#{bin}/llvm-config --system-libs").chomp.strip.split.each do |lib|
if lib.start_with?("-l")
assert !lib.end_with?(".tbd"), "expected abs path when lib reported as .tbd"
assert !lib.end_with?(ext), "expected abs path when lib reported as .dylib"
Expand Down

0 comments on commit cdeec75

Please sign in to comment.