mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
boost-build: build correctly with clang (on FreeBSD)
> Running phase: installPhase > warning: No toolsets are configured. > warning: Configuring default toolset "gcc". > warning: If the default is wrong, your build may not work correctly. > warning: Use the "toolset=xxxxx" option to override our guess. > warning: For more configuration options, please consult > warning: https://www.bfgroup.xyz/b2/manual/release/index.html#bbv2.overview.configuration > /build/boost_1_81_0/tools/build/src/tools/common.jam:1152: in common.find-compiler from module common > error: toolset gcc initialization: > error: no command provided, default command 'g++' not found
This commit is contained in:
parent
612b7cbb4b
commit
9dbed7df55
@ -56,7 +56,7 @@ stdenv.mkDerivation {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
./b2 install --prefix="$out"
|
||||
./b2 ${lib.optionalString (stdenv.cc.isClang) "toolset=clang "}install --prefix="$out"
|
||||
|
||||
# older versions of b2 created this symlink,
|
||||
# which we want to support building via useBoost.
|
||||
|
Loading…
Reference in New Issue
Block a user