Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change README to refer to LLVM_BUILD_DIR. #1033

Merged
merged 2 commits into from
Mar 5, 2020

Conversation

DavidTruby
Copy link
Collaborator

LLVM_INSTALL_TOOLS doesn't seem to install llvm-lit anymore. However
pointing to the cmake file in the build directory works fine, and lit
and FileCheck will be picked up correctly this way.

LLVM_INSTALL_TOOLS doesn't seem to install llvm-lit anymore. However
pointing to the cmake file in the build directory works fine, and lit
and FileCheck will be picked up correctly this way.
@DavidTruby
Copy link
Collaborator Author

I've bundled in a fix for #974 to this, as the new build instructions and the fix of those depends need to go hand in hand.

Comment on lines -19 to -22
llvm-lit
FileCheck
count
not
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We will want to add these back in once #969 lands, but right now these aren't targets that we can depend on because they're not present as targets in our own cmake call.

@RichBarton-Arm
Copy link
Contributor

@sscalpone or @tskeith are you happy to merge this for David?

@tskeith
Copy link
Collaborator

tskeith commented Feb 28, 2020

It looks like these instructions are going to conflict with the ones in PR #1035 which require an LLVM install.

@DavidTruby
Copy link
Collaborator Author

DavidTruby commented Feb 28, 2020

Ok, I think there's a bug here (or more than one) on the LLVM side. Surely either the AddMLIR.cmake file should be in the build directory or llvm-lit should be installed when -DLLVM_INSTALL_UTILS is on. I'm somewhat inclined to say both should be the case personally. Let me investigate why llvm-lit isn't installed when I think it should be (and am sure it used to be) first.

@tskeith
Copy link
Collaborator

tskeith commented Feb 29, 2020

Ok, I think there's a bug here (or more than one) on the LLVM side. Surely either the AddMLIR.cmake file should be in the build directory or llvm-lit should be installed when -DLLVM_INSTALL_UTILS is on. I'm somewhat inclined to say both should be the case personally.

I agree on both counts.

Let me investigate why llvm-lit isn't installed when I think it should be (and am sure it used to be) first.

That sounds good. I think we should assume we should build against an LLVM install, and until this is fixed work around the missing llvm-lit by setting LLVM_EXTERNAL_LIT or manually installing llvm-lit by copying it into the install.

@sscalpone sscalpone merged commit 3cbe344 into flang-compiler:master Mar 5, 2020
Sameeranjoshi pushed a commit to Sameeranjoshi/f18 that referenced this pull request Mar 24, 2020
* Change README to refer to LLVM_BUILD_DIR.

LLVM_INSTALL_TOOLS doesn't to install llvm-lit. However pointing to the cmake file in the build directory works fine, and lit and FileCheck will be picked up correctly this way.
swift-ci pushed a commit to swiftlang/llvm-project that referenced this pull request Apr 9, 2020
…#1033)

* Change README to refer to LLVM_BUILD_DIR.

LLVM_INSTALL_TOOLS doesn't to install llvm-lit. However pointing to the cmake file in the build directory works fine, and lit and FileCheck will be picked up correctly this way.

Original-commit: flang-compiler/f18@3cbe344
Reviewed-on: flang-compiler/f18#1033
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
…#1033)

* Change README to refer to LLVM_BUILD_DIR.

LLVM_INSTALL_TOOLS doesn't to install llvm-lit. However pointing to the cmake file in the build directory works fine, and lit and FileCheck will be picked up correctly this way.

Original-commit: flang-compiler/f18@3cbe344
Reviewed-on: flang-compiler/f18#1033
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.

4 participants