mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
sourceHighlight: fix tests with llvm (#329993)
This commit is contained in:
commit
1f66cddf4d
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchpatch, fetchurl, boost, updateAutotoolsGnuConfigScriptsHook }:
|
||||
{ lib, stdenv, fetchpatch, fetchurl, boost, updateAutotoolsGnuConfigScriptsHook, llvmPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "source-highlight";
|
||||
@ -46,7 +46,10 @@ stdenv.mkDerivation rec {
|
||||
# necessary to build on FreeBSD native pending inclusion of
|
||||
# https://git.savannah.gnu.org/cgit/config.git/commit/?id=e4786449e1c26716e3f9ea182caf472e4dbc96e0
|
||||
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
|
||||
buildInputs = [ boost ];
|
||||
buildInputs = [ boost ]
|
||||
++ lib.optional (stdenv.targetPlatform.useLLVM or false) (llvmPackages.compiler-rt.override {
|
||||
doFakeLibgcc = true;
|
||||
});
|
||||
|
||||
configureFlags = [
|
||||
"--with-boost=${boost.out}"
|
||||
@ -71,4 +74,7 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
} // lib.optionalAttrs (stdenv.targetPlatform.useLLVM or false) {
|
||||
# Force linking to "libgcc" so tests pass
|
||||
NIX_CFLAGS_COMPILE = "-lgcc";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user