From 142dcfecfe9a177077ac16b40cac8a693738ac1d Mon Sep 17 00:00:00 2001 From: Idris Kalp Date: Fri, 29 Apr 2022 06:07:04 +0300 Subject: [PATCH] fix llvm --- programming/build/llvm/actions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programming/build/llvm/actions.py b/programming/build/llvm/actions.py index 54409585df..0442c23e53 100644 --- a/programming/build/llvm/actions.py +++ b/programming/build/llvm/actions.py @@ -26,8 +26,8 @@ def setup(): pisitools.ldflags.add("-fuse-ld=lld") pisitools.cflags.remove("-D_FORTIFY_SOURCE=2") pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2") - pisitools.cflags.add("-mllvm -polly -Wno-unused-command-line-argument") - pisitools.cxxflags.add("-mllvm -polly -Wno-unused-command-line-argument") + pisitools.cflags.add("-rtlib=compiler-rt -Wno-unused-command-line-argument") + pisitools.cxxflags.add("-rtlib=compiler-rt -Wno-unused-command-line-argument") shelltools.export("CC", "clang") shelltools.export("CXX", "clang++") shelltools.export("AR", "llvm-ar") @@ -67,8 +67,8 @@ def setup(): if get.buildTYPE() == "emul32": #shelltools.export("CC", "gcc -m32") #shelltools.export("CXX", "g++ -m32") - pisitools.cflags.add("-m32 ") - pisitools.cxxflags.add("-m32") + pisitools.cflags.add("-m32 -rtlib=compiler-rt") + pisitools.cxxflags.add("-m32 -rtlib=compiler-rt") shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") options = " -DCMAKE_INSTALL_PREFIX=/emul32 \ -DLLVM_TARGET_ARCH:STRING=i686 \