Skip to content

Instantly share code, notes, and snippets.

@nulltask
Created February 18, 2012 07:51
Show Gist options
  • Select an option

  • Save nulltask/1858105 to your computer and use it in GitHub Desktop.

Select an option

Save nulltask/1858105 to your computer and use it in GitHub Desktop.
brew --env with Xcode 4.3
$ brew --env --use-gcc
Error: GCC could not be found
ma:.brew nulltask$ brew --env --use-llvm
"--use-llvm" was specified
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -isystem /Users/nulltask/.brew/include
LDFLAGS: -L/Users/nulltask/.brew/lib
MAKEFLAGS: -j4
ma:.brew nulltask$ brew --env
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native
CXXFLAGS: -Os -w -pipe -march=native
CPPFLAGS: -isystem /Users/nulltask/.brew/include
LDFLAGS: -L/Users/nulltask/.brew/lib
MAKEFLAGS: -j4
ma:.brew nulltask$ ls -l /usr/bin/c{c,++}
lrwxr-xr-x 1 root wheel 7 2 18 05:57 /usr/bin/c++ -> clang++
lrwxr-xr-x 1 root wheel 5 2 18 05:57 /usr/bin/cc -> clang
@nulltask
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment