diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-23 11:22:44 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-23 11:24:17 +0100 |
commit | 6a8485af6bd2f4fc13f3e05f364f75b151268bed (patch) | |
tree | 73d48911166e563e4ecd6e7925b0c078fab1a20c /pkgs/build-support | |
parent | c07559b782acc2a152d6c9705e90bad724e64a2d (diff) |
clang-wrapper: Set $CXX to clang
This is useful for non-Autoconf-based packages, since GNU Make's default for CXX is "g++". (The CC default is "cc" so should work fine with Clang already.)
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/clang-wrapper/setup-hook.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/clang-wrapper/setup-hook.sh b/pkgs/build-support/clang-wrapper/setup-hook.sh index 0724d081290bb..f7687651eaf6c 100644 --- a/pkgs/build-support/clang-wrapper/setup-hook.sh +++ b/pkgs/build-support/clang-wrapper/setup-hook.sh @@ -31,3 +31,6 @@ fi if test -n "@coreutils@"; then addToSearchPath PATH @coreutils@/bin fi + +: ${CXX:=clang++} +export CXX |