Skip to content

Conversation

@mppf
Copy link
Member

@mppf mppf commented Jul 13, 2020

This PR allows ./update-llvm.sh release/10.x and a subsequent make to
build RV. It adjusts the script and Makefiles to expect RV to be in
llvm-project/rv which is the expected location according to the RV
authors. It fixes an error where the llvm-project clone was always
using the master branch instead of the requested release.

Additionally it adjusts the LLVM build step to print out the cmake
command because I am always wanting to check it for errors when things
are going wrong and I don't know of another easy way to do that.

While there, resolves #14038 by adding
-DCLANG_ANALYZER_ENABLE_Z3_SOLVER=0 to the cmake command.

Reviewed by @e-kayrakli - thanks!

  • verified that a clean build of llvm works with z3 installed

@mppf mppf requested review from e-kayrakli and ronawho July 14, 2020 20:11
include $(THIRD_PARTY_DIR)/llvm/Makefile.share-included

# Enable RV and Polly if they are in the source directory
LLVM_RV_FILE = $(LLVM_DIR)/$(LLVM_SUBDIR)/tools/rv/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we keeping this for backwards compatibility?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it in because I'm not sure if it will be needed or not in the future if we start to bundle RV.

@mppf mppf merged commit 8ed0431 into chapel-lang:master Jul 15, 2020
@mppf mppf deleted the fix-llvm-update-rv branch July 15, 2020 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LLVM fails to build when Z3 is installed on system

2 participants