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

LLVM 13 Updates #73

Merged
merged 6 commits into from
Aug 9, 2022
Merged

Conversation

nickpdemarco
Copy link
Contributor

@nickpdemarco nickpdemarco commented Jul 26, 2022

Description

This change builds off of @fosterbrereton's branch fosterbrereton/llvm13-updates.

  1. Update CMakeLists.txt to use a more standard brew command to locate llvm.
  2. Update .gitignore to ignore build*/
  3. Add a few header includes related to a boost::filesystem change.

Related Issue

Motivation and Context

Required to build with LLVM 13.

How Has This Been Tested?

Tested by running a ninja-powered build on my M1 laptop.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Contributor

@sean-parent sean-parent left a comment

Choose a reason for hiding this comment

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

LGTM

LIST(GET llvm_version_dir 0 llvm_to_use)
# we detect the install location with brew --prefix llvm
execute_process(
COMMAND brew --prefix llvm
Copy link
Contributor

Choose a reason for hiding this comment

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

This is great. Have you tested it with older versions and multiple versions installed?

Copy link
Contributor

@jaredwy jaredwy Aug 2, 2022

Choose a reason for hiding this comment

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

With older versions, lets just call 13 the new minimum and dump an error if we are earlier. Out of scope for this PR, so if this works with multiple versions we are good.

Copy link
Contributor Author

@nickpdemarco nickpdemarco Aug 3, 2022

Choose a reason for hiding this comment

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

It appears to work as expected.

$ brew install llvm@12
$ mkdir build && cd build
$ cmake .. -GNinja
$ cmake --build .

Compiles and points to the right llvm.

@jaredwy
Copy link
Contributor

jaredwy commented Aug 2, 2022

Looks good to me, just one question. Let me know if you want me to tets that for you.

@nickpdemarco
Copy link
Contributor Author

@jaredwy Thanks for the suggestion to test multiple versions. It works as expected on my machine with multiple versions of LLVM installed. If you're satisfied, please merge at your earliest convenience.

@sean-parent sean-parent merged commit 5683721 into adobe:master Aug 9, 2022
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