Sumonto Ghosh via llvm-dev
2018-Aug-03 20:38 UTC
[llvm-dev] Clang for macOS requires -lto_library
Hi, I downloaded Clang for macOS <http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz> However if I use -fuse-ld=lld it complains "Unable to find library for -lto_library" CLANG = clang CLANG_PATH = ~/Downloads/clang+llvm-6.0.0-x86_64-apple-darwin/bin CFLAGS RM = rm -f TARGET = x86_64-apple-darwin17.4.0 EXE = Test.exe default: clean all all: $(EXE) $(EXE): test.c $(CLANG_PATH)/$(CLANG) -v \ -fuse-ld=lld \ -target $(TARGET) \ -o $@ $< $(CFLAGS) clean: $(RM) $(EXE) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180803/ff2b005b/attachment.html>