Merge pull request #74661 from itsapinhulk/boost_extra_args

boost : support extra arguments to b2
This commit is contained in:
Mario Rodas 2019-12-03 04:57:32 -05:00 committed by GitHub
commit e4d1d83f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@
, taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic))
, patches ? []
, mpi ? null
, extraB2Args ? []
# Attributes inherit from specific versions
, version, src
@ -92,7 +93,8 @@ let
++ optional (mpi != null || stdenv.hostPlatform != stdenv.buildPlatform) "--user-config=user-config.jam"
++ optionals (stdenv.hostPlatform.libc == "msvcrt") [
"threadapi=win32"
]);
] ++ extraB2Args
);
in