Last active
March 19, 2025 14:05
-
-
Save nox40/c049fd21207372986a4eca7c8094bee6 to your computer and use it in GitHub Desktop.
Code snippets for Homebrew running on my legacy macOS system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ENV["PATH"] = "#{ENV["HOMEBREW_PREFIX"]}/bin:".concat(ENV["PATH"]) | |
| ENV["PATH"] = "#{ENV["HOMEBREW_OPT"]}/llvm@15/bin:".concat(ENV["PATH"]) | |
| ENV["CC"] = "#{ENV["HOMEBREW_OPT"]}/llvm@15/bin/clang" | |
| ENV["CXX"] = "#{ENV["HOMEBREW_OPT"]}/llvm@15/bin/clang++" | |
| ENV["CPPFLAGS"] = "-I#{ENV["HOMEBREW_OPT"]}/llvm@15/include" | |
| ENV["LDFLAGS"] = "-L#{ENV["HOMEBREW_OPT"]}/llvm@15/lib -Wl,-rpath,#{ENV["HOMEBREW_OPT"]}/llvm@15/lib" | |
| ENV["LDFLAGS"] = "#{ENV["LDFLAGS"]} -L#{ENV["HOMEBREW_OPT"]}/llvm@15/lib/c++ -Wl,-rpath,#{ENV["HOMEBREW_OPT"]}/llvm@15/lib/c++" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PATH="$HOMEBREW_PREFIX/bin:$PATH" | |
| export PATH="$HOMEBREW_OPT/llvm@15/bin:$PATH" | |
| export CC="$HOMEBREW_OPT/llvm@15/bin/clang" | |
| export CXX="$HOMEBREW_OPT/llvm@15/bin/clang++" | |
| export CPPFLAGS="-I$HOMEBREW_OPT/llvm@15/include" | |
| export LDFLAGS="-L$HOMEBREW_OPT/llvm@15/lib -Wl,-rpath,$HOMEBREW_OPT/llvm@15/lib" | |
| export LDFLAGS="$LDFLAGS -L$HOMEBREW_OPT/llvm@15/lib/c++ -Wl,-rpath,$HOMEBREW_OPT/llvm@15/lib/c++" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| system "false" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment