-
Notifications
You must be signed in to change notification settings - Fork 12
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
Switch to upstream cache files, Add test cases, etc #41
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Since this cache value overrides the defaults, we end up with `clang` linked to `clang-20`, and some `${triple}-clang*` links, but we're missing `clang++`. This makes for a toolchain with inconsistent behavior when used in someone's `$PATH`. We'll add the default symlinks to our list so that C and C++ programs are both built as expected when `clang` and `clang++` are invoked. Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
36987f6
to
b6750a3
Compare
quic-mathbern
approved these changes
Jan 23, 2025
To better integrate our components builds into the upstream project, we've contributed the cmake cache files there. This will give better community visibility into the hexagon toolchain's use cases. The cmake cache files were created after release/19.x, in these llvm-project commits: * c906907d871d ([hexagon][cmake] Disable ctx_profile (#117965), 2024-12-02) * ea62db0c0398 ([cmake] Add hexagon-linux cmake cache files (#98712), 2024-10-03) Let's switch to build using the now-upstream llvm-project cmake cache files instead. Signed-off-by: Brian Cain <bcain@quicinc.com>
Since 0819ad0 ([cmake] Switch to llvm-project cache files, 2024-09-06), these files are no longer used, we use the corresponding ones from the llvm-project repo instead. Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
In llvm/llvm-project@6c4267f, there's a `target_compile_features()` directive that appears to cause the runtimes build to check the toolchain for C++17 support. This appears to depend on the C++ library being present, which is not possible because we haven't built it yet. Either this is a bug in the runtimes' build mechanism or it's the intended behavior and we need to special-case our bootstrap build. Regardless, this change makes sense for the time being. See also: * llvm/llvm-project#114591 * llvm/llvm-project#123184 * https://discourse.llvm.org/t/bootstrapping-cross-compiler-runtimes-build-failure/84194 Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
These tests appear to be passing and increase our overall coverage, so let's add them to the test suite. Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Having this enabled makes the logs easier to read. Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
It seemed like a nice idea to specify the scope via cmake and then just use the generic `install` target but problems like f546294 (Disable ctx_profile to fix clangrt-builtins, 2024-11-27) happen. Recently, there's some similar but yet-unidentified problem causing similar symptoms (attempts to build sanitizer code in compiler-rt that's not yet supported, e.g.). Instead, let's just build the stuff we need by specifying the right target. Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
b6750a3
to
e216065
Compare
quic-mathbern
approved these changes
Jan 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.