SNSystems / llvm-project-prepo

Fork of LLVM with modifications to support a program repository
26 stars 0 forks source link

Fixed a previous merge issue and a test failure. #150

Closed MaggieYingYi closed 3 years ago

MaggieYingYi commented 3 years ago

To reproduce the build error, target on all targets:

$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;pstore" -DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD=OFF ../llvm
$ ninja

Got a build error:

/home/maggie/github/llvm-project-prepo/llvm/lib/Target/Lanai/LanaiTargetObjectFile.cpp:119:12: error: no declaration matches ‘llvm::MCSection* llvm::LanaiTargetObjectFile::getSectionForConstant(const llvm::DataLayout&, llvm::SectionKind, const llvm::Constant*, const llvm::GlobalObject*, llvm::Align&) const’
  119 | MCSection *LanaiTargetObjectFile::getSectionForConstant(

When running the lit tests, a test failed with the following error:

$ ninja check-all

LLVM :: tools/repo-fragments/tool-options-test.ll

Error: NOT command not found