-
-
Notifications
You must be signed in to change notification settings - Fork 174
aix: install clang #4234
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
Merged
Merged
aix: install clang #4234
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
48e07d7
aix: install clang on ci machines
abmusse dcc18db
additional changes needed after running the playbook
abmusse f33963f
doc: manual steps for clang backend
abmusse 7e2948e
add dnf update step
abmusse 0416ff1
Update MANUAL_STEPS.md
abmusse 5d5ee0a
Added additional breadcumb documentation
abmusse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| # | ||
| # Downloads and installs clang | ||
| # | ||
|
|
||
| - name: Check if clang is already installed | ||
| changed_when: no | ||
| check_mode: no | ||
| command: "/opt/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2/bin/clang --version" | ||
| register: clang | ||
| ignore_errors: yes | ||
|
|
||
| # If we're already using the latest there is no need to do anything. | ||
| # TODO improve the error handling | ||
| - name: check existing clang version is up to date | ||
| set_fact: | ||
| update_clang: "{{ 'clang version 20.1.7' not in clang.stdout }}" | ||
|
|
||
| - name: create cache directory for clang binaries | ||
| file: | ||
| path: "/var/cache/clang-binaries" | ||
| state: directory | ||
| when: update_clang == True | ||
|
|
||
| - name: download clang binary | ||
| get_url: | ||
| checksum: sha256:a18aea07f5b977e64bc7fe7358e95897c7ba05fbe68eeefb1614631347be4b3a | ||
| dest: "/var/cache/clang-binaries/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2.tar.xz" | ||
| url: "https://github.com/IBM/llvm-project/releases/download/llvmorg-20.1.7/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2.tar.xz" | ||
| register: clang_local | ||
| when: update_clang == True | ||
|
|
||
| - name: unpack clang binary | ||
| register: clang_unpacked | ||
| unarchive: | ||
| dest: "/opt/" | ||
| list_files: yes | ||
| remote_src: yes | ||
| src: "{{ clang_local.dest }}" | ||
| when: update_clang == True | ||
|
|
||
| # if we don't have the clang runtime libraries installed this will fail | ||
| - name: Check if we have a runnable clang | ||
| changed_when: no | ||
| check_mode: no | ||
| ansible.builtin.command: "/opt/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2/bin/clang --version" | ||
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.