mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-22 02:07:56 +01:00
gnu: clang-runtime-15: Fix address sanitizer support
$ guix shell clang-toolchain@15 -- clang -o test -fsanitize=address test.c ld: cannot find /gnu/store/i429h17s15g48ir9vl1bzp3cv39l5pib-clang-runtime-15.0.7/lib/linux/libclang_rt.asan_static-x86_64.a: No such file or directory ld: cannot find /gnu/store/i429h17s15g48ir9vl1bzp3cv39l5pib-clang-runtime-15.0.7/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory clang-15: error: linker command failed with exit code 1 (use -v to see invocation) * gnu/packages/llvm.scm (clang-runtime-15): Fix address sanitizer support by bringing back the static libraries. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
dd4c199210
commit
ae92d98b93
1 changed files with 1 additions and 6 deletions
|
@ -699,12 +699,7 @@ (define-public clang-runtime-15
|
||||||
#~(modify-phases #$phases
|
#~(modify-phases #$phases
|
||||||
(add-after 'unpack 'change-directory
|
(add-after 'unpack 'change-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "compiler-rt")))
|
(chdir "compiler-rt")))))))
|
||||||
(add-after 'install 'delete-static-libraries
|
|
||||||
;; Reduce size from 33 MiB to 7.4 MiB.
|
|
||||||
(lambda _
|
|
||||||
(for-each delete-file
|
|
||||||
(find-files #$output "\\.a(\\.syms)?$"))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(modify-inputs (package-native-inputs template)
|
(modify-inputs (package-native-inputs template)
|
||||||
(prepend gcc-12))) ;libfuzzer fails to build with GCC 11
|
(prepend gcc-12))) ;libfuzzer fails to build with GCC 11
|
||||||
|
|
Loading…
Reference in a new issue