diff options
author | Joachim F <joachifm@users.noreply.github.com> | 2018-01-10 19:51:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-10 19:51:37 +0000 |
commit | 3b4ebab230b573b8b09986764b1d8162a7e7884d (patch) | |
tree | 89f1a4fac498289d25b7836a29b37ddf61393b6b /pkgs/development | |
parent | 32f6c9a73da5f7422642e20adf59c39ca439ccc1 (diff) | |
parent | 1aff67ce19afaf61e8f5296ee8e925f3f54adc8c (diff) | |
download | nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.tar nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.tar.gz nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.tar.bz2 nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.tar.lz nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.tar.xz nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.tar.zst nixlib-3b4ebab230b573b8b09986764b1d8162a7e7884d.zip |
Merge pull request #33532 from ThomasMader/ldc1.7.0
ldc: 1.5.0 -> 1.7.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/ldc/default.nix | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/pkgs/development/compilers/ldc/default.nix b/pkgs/development/compilers/ldc/default.nix index 73d798bb66fd..d11df241e2af 100644 --- a/pkgs/development/compilers/ldc/default.nix +++ b/pkgs/development/compilers/ldc/default.nix @@ -2,8 +2,8 @@ , python, libconfig, lit, gdb, unzip, darwin, bash , callPackage , bootstrapVersion ? false -, version ? "1.5.0" -, ldcSha256 ? "1150sgns03vplni2wd4afk3rgw3rap8rsiipspw0rzxgki5rlr83" +, version ? "1.7.0" +, ldcSha256 ? "1g8qvmlzvsp030z2rw6lis4kclsd9mlmnbim5kas0k1yr9063m3w" }: let @@ -58,9 +58,9 @@ let rm tests/d2/dmd-testsuite/runnable/variadic.d '' - + stdenv.lib.optionalString (!bootstrapVersion) '' - # https://github.com/NixOS/nixpkgs/issues/29611 - rm tests/sanitizers/asan_* + + stdenv.lib.optionalString (stdenv.hostPlatform.isLinux && !bootstrapVersion) '' + # http://forum.dlang.org/thread/xtbbqthxutdoyhnxjhxl@forum.dlang.org + rm -r tests/dynamiccompile ''; ROOT_HOME_DIR = "$(echo ~root)"; @@ -71,9 +71,6 @@ let "phobos/std/datetime/timezone.d"; postPatch = '' - substituteInPlace cmake/Modules/FindLLVM.cmake \ - --replace "llvm_set(LIBRARY_DIRS" "#llvm_set(LIBRARY_DIRS" - substituteInPlace runtime/${datetimePath} \ --replace "import core.time;" "import core.time;import std.path;" @@ -97,7 +94,7 @@ let substituteInPlace runtime/phobos/std/path.d \ --replace "\"/root" "\"${ROOT_HOME_DIR}" - # TODO + # Can be remove with front end version >= 2.078.0 substituteInPlace runtime/druntime/src/core/memory.d \ --replace "assert(z is null);" "//assert(z is null);" '' @@ -108,14 +105,9 @@ let substituteInPlace gen/programs.cpp \ --replace "gcc" "clang" - # Was not able to compile on darwin due to "__inline_isnanl" - # being undefined. - substituteInPlace dmd2/root/port.c --replace __inline_isnanl __inline_isnan - '' - - + stdenv.lib.optionalString (stdenv.hostPlatform.isLinux && bootstrapVersion) '' - substituteInPlace dmd2/root/port.c \ - --replace "#include <bits/mathdef.h>" "#include <complex.h>" + # Was not able to compile on darwin due to "__inline_isnanl" + # being undefined. + substituteInPlace dmd2/root/port.c --replace __inline_isnanl __inline_isnan '' + stdenv.lib.optionalString (bootstrapVersion) '' @@ -147,7 +139,6 @@ let "-DLDC_WITH_LLD=OFF" # Xcode 9.0.1 fixes that bug according to ldc release notes "-DRT_ARCHIVE_WITH_LDC=OFF" - "-DLLVM_LIBRARY_DIRS=${llvm}/lib" ) ''; @@ -214,7 +205,6 @@ let "-DLDC_WITH_LLD=OFF" # Xcode 9.0.1 fixes that bug according to ldc release notes "-DRT_ARCHIVE_WITH_LDC=OFF" - "-DLLVM_LIBRARY_DIRS=${llvm}/lib" "-DD_COMPILER=${ldcBuild}/bin/ldmd2" ) ''; |