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:
Audrey Dutcher 2023-09-12 10:52:27 -07:00
parent 612b7cbb4b
commit 9dbed7df55

View File

@ -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.