me
/
guix
Archived
1
0
Fork 0

gnu: ldc: Fix build on aarch64-linux.

* gnu/packages/dlang.scm (ldc)[arguments]: Don't delete tests which
don't fail on aarch64-linux.  Adjust custom 'check phase to skip some
tests known to fail on aarch64-linux.

Change-Id: I84ea2f356a44e12952dbb852e41921895605176a
master
Efraim Flashner 2024-06-04 08:37:28 +03:00
parent c0c650219b
commit 8c335c47c0
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 11 additions and 8 deletions

View File

@ -316,12 +316,6 @@ bootstrapping more recent compilers written in D.")
"sanitizers/msan_noerror.d"
"sanitizers/msan_uninitialized.d"
"dmd/runnable_cxx/cppa.d")))
(,(target-aarch64?)
(for-each delete-file
'("dmd/runnable/ldc_cabi1.d"
"sanitizers/fuzz_basic.d"
"sanitizers/msan_noerror.d"
"sanitizers/msan_uninitialized.d")))
(#t '())))))
(add-before 'configure 'set-cc-and-cxx-to-use-clang
;; The tests require to be built with Clang; build everything
@ -352,8 +346,17 @@ bootstrapping more recent compilers written in D.")
"-R" "dmd-testsuite")
(display "running the defaultlib unit tests and druntime \
integration tests...\n")
(invoke "ctest" "--output-on-failure" "-j" job-count
"-E" "dmd-testsuite|lit-tests|ldc2-unittest")))))))))
(invoke
"ctest" "--output-on-failure" "-j" job-count "-E"
(string-append
"dmd-testsuite|lit-tests|ldc2-unittest"
,@(if (target-aarch64?)
`((string-append
"|std.internal.math.gammafunction-shared"
"|std.math.exponential-shared"
"|std.internal.math.gammafunction-debug-shared"
"|druntime-test-exceptions-debug"))
`(""))))))))))))
(native-inputs
(append (delete "llvm"
(alist-replace "ldc" (list ldc-bootstrap)