From 793d7d66ce821bb9c46a9a7dfc7cd8e2ececdab0 Mon Sep 17 00:00:00 2001 From: idriskalp Date: Thu, 23 Jan 2020 19:52:54 +0300 Subject: [PATCH] libc++ fix --- programming/misc/libc++/actions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programming/misc/libc++/actions.py b/programming/misc/libc++/actions.py index 7c09b26f61..19b69e1fa8 100755 --- a/programming/misc/libc++/actions.py +++ b/programming/misc/libc++/actions.py @@ -24,13 +24,13 @@ def build(): for arch in ["x86_64", "i686"]: if arch == "x86_64": - shelltools.export("CC", "clang -m64 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch) - shelltools.export("CXX", "clang++ -m64 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch) + shelltools.export("CC", "clang -m64 -fuse-ld=lld -rtlib=compiler-rt") + shelltools.export("CXX", "clang++ -m64 -fuse-ld=lld -rtlib=compiler-rt") shelltools.export("LDFLAGS", " -fuse-ld=lld -rtlib=compiler-rt -L/usr/lib -ldl -lpthread") libsuffix = " " if arch == "i686": - shelltools.export("CC", "clang -m32 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch) - shelltools.export("CXX", "clang++ -m32 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch) + shelltools.export("CC", "clang -m32 -fuse-ld=lld -rtlib=compiler-rt") + shelltools.export("CXX", "clang++ -m32 -fuse-ld=lld -rtlib=compiler-rt") shelltools.export("LDFLAGS", "-fuse-ld=lld -L/usr/lib32 -ldl -lpthread") libsuffix = "32"