Commit Graph

7 Commits

Author SHA1 Message Date
twlz0ne
6006a01c1e
Merge b6a2498bfe into 7b41f72f5f 2018-05-13 22:19:10 +00:00
Fangrui Song
7b41f72f5f experimental/filesystem -> LLVM/Support/FileSystem.h; sparsepp -> DenseMap 2018-05-13 14:24:53 -07:00
Gong Qijian
b6a2498bfe cmake: add clangBasic
Fix build issue on Darwin:

```
Undefined symbols for architecture x86_64:
  "clang::ObjCRuntime::tryParse(llvm::StringRef)", referenced from:
      clang::driver::tools::Clang::AddObjCRuntimeArgs(llvm::opt::ArgList const&, llvm::SmallVector<char const*, 16u>&, clang::driver::tools::Clang::RewriteKind) const in libclangDriver.a(Clang.cpp.o)
  "clang::VersionTuple::tryParse(llvm::StringRef)", referenced from:
      clang::driver::ToolChain::computeMSVCVersion(clang::driver::Driver const*, llvm::opt::ArgList const&) const in libclangDriver.a(ToolChain.cpp.o)
  "clang::DiagnosticIDs::getDiagnosticFlags()", referenced from:
      clang::driver::Driver::handleAutocompletions(llvm::StringRef) const in libclangDriver.a(Driver.cpp.o)
  "clang::DiagnosticIDs::getCategoryNameFromID(unsigned int)", referenced from:
      clang::driver::Driver::HandleImmediateArgs(clang::driver::Compilation const&) in libclangDriver.a(Driver.cpp.o)
  "clang::DiagnosticIDs::getNumberOfCategories()", referenced from:
      clang::driver::Driver::HandleImmediateArgs(clang::driver::Compilation const&) in libclangDriver.a(Driver.cpp.o)
  ...

  "_compress2", referenced from:
      llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl<char>&, llvm::zlib::CompressionLevel) in libLLVMSupport.a(Compression.cpp.o)
  "_compressBound", referenced from:
      llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl<char>&, llvm::zlib::CompressionLevel) in libLLVMSupport.a(Compression.cpp.o)
  "_crc32", referenced from:
      llvm::zlib::crc32(llvm::StringRef) in libLLVMSupport.a(Compression.cpp.o)
  "_uncompress", referenced from:
      llvm::zlib::uncompress(llvm::StringRef, char*, unsigned long&) in libLLVMSupport.a(Compression.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
```
2018-05-14 02:34:58 +08:00
Fangrui Song
224ba97f27 Use clang+llvm C++ in cmake; parse args with clang driver 2018-05-13 01:13:14 -07:00
Fangrui Song
98a4ef5288 Import cmake improvement by Daan De Meyer 2018-04-07 10:21:07 -07:00
Daan De Meyer
401d542ba7 Switch to -print-resource-dir (drop support for system clang 4.0) 2018-03-26 08:07:40 -07:00
DaanDeMeyer
1882bd0256 Add CMake as alternative build system (#526) 2018-03-17 12:03:41 -07:00