SHA256
1
0
forked from pool/ldc
ldc/workaround-buggy-llvm-config.patch

12 lines
561 B
Diff

diff -ur ldc-0.16.0-beta2-src.orig/cmake/Modules/FindLLVM.cmake ldc-0.16.0-beta2-src/cmake/Modules/FindLLVM.cmake
--- ldc-0.16.0-beta2-src.orig/cmake/Modules/FindLLVM.cmake 2015-10-10 14:45:09.000000000 +0200
+++ ldc-0.16.0-beta2-src/cmake/Modules/FindLLVM.cmake 2015-10-11 13:58:33.478728289 +0200
@@ -142,6 +142,7 @@
${_quiet_arg}
)
file(TO_CMAKE_PATH "${tmplibs}" tmplibs)
+ string(REGEX REPLACE "\\.a" ".so" tmplibs ${tmplibs})
string(REGEX MATCHALL "${pattern}[^ ]+" LLVM_${var} ${tmplibs})
endmacro()