Skip to content

Commit ea90cbd

Browse files
Add AOCC (AMD Optimizing C/C++ Compiler) install config
Add AOCC versions 3.2.0, 4.0.0, 4.1.0, 4.2.0, 5.0.0 and 5.1.0 for C++, C, and Fortran. Tarballs are fetched directly from AMD's download servers (no registration required). Two URL patterns are needed: an older form for <= 4.0 and a newer form for 4.1+. Closes compiler-explorer/compiler-explorer#430 🤖 Generated by LLM (Claude, via OpenClaw) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 30e9d2b commit ea90cbd

3 files changed

Lines changed: 87 additions & 0 deletions

File tree

bin/yaml/c.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,35 @@ compilers:
130130
check_stderr_on_stdout: true
131131
targets:
132132
- Release-1
133+
aocc:
134+
- type: tarballs
135+
check_exe: bin/clang --version
136+
dir: aocc-{{name}}
137+
untar_dir: aocc-compiler-{{name}}
138+
compression: xz
139+
url: https://download.amd.com/developer/eula/aocc-compiler/aocc-compiler-{{name}}.tar
140+
targets:
141+
- 3.2.0
142+
- 4.0.0
143+
- type: tarballs
144+
check_exe: bin/clang --version
145+
dir: aocc-{{name}}
146+
untar_dir: aocc-compiler-{{name}}
147+
compression: xz
148+
url: https://download.amd.com/developer/eula/aocc/aocc-{{major}}-{{minor}}/aocc-compiler-{{name}}.tar
149+
targets:
150+
- name: 4.1.0
151+
major: 4
152+
minor: 1
153+
- name: 4.2.0
154+
major: 4
155+
minor: 2
156+
- name: 5.0.0
157+
major: 5
158+
minor: 0
159+
- name: 5.1.0
160+
major: 5
161+
minor: 1
133162
cross:
134163
type: s3tarballs
135164
arch_prefix:

bin/yaml/cpp.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,35 @@ compilers:
11781178
- 7.1.0
11791179
- 7.1.1
11801180
- 7.2.0
1181+
aocc:
1182+
- type: tarballs
1183+
check_exe: bin/clang++ --version
1184+
dir: aocc-{{name}}
1185+
untar_dir: aocc-compiler-{{name}}
1186+
compression: xz
1187+
url: https://download.amd.com/developer/eula/aocc-compiler/aocc-compiler-{{name}}.tar
1188+
targets:
1189+
- 3.2.0
1190+
- 4.0.0
1191+
- type: tarballs
1192+
check_exe: bin/clang++ --version
1193+
dir: aocc-{{name}}
1194+
untar_dir: aocc-compiler-{{name}}
1195+
compression: xz
1196+
url: https://download.amd.com/developer/eula/aocc/aocc-{{major}}-{{minor}}/aocc-compiler-{{name}}.tar
1197+
targets:
1198+
- name: 4.1.0
1199+
major: 4
1200+
minor: 1
1201+
- name: 4.2.0
1202+
major: 4
1203+
minor: 2
1204+
- name: 5.0.0
1205+
major: 5
1206+
minor: 0
1207+
- name: 5.1.0
1208+
major: 5
1209+
minor: 1
11811210
plugins:
11821211
clad:
11831212
path_name: clang-plugins/clad-{{name}}

bin/yaml/fortran.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,32 @@ compilers:
120120
check_exe: bin/flang --version
121121
targets:
122122
- 20.1.8
123+
aocc-flang:
124+
- type: tarballs
125+
check_exe: bin/flang --version
126+
dir: aocc-{{name}}
127+
untar_dir: aocc-compiler-{{name}}
128+
compression: xz
129+
url: https://download.amd.com/developer/eula/aocc-compiler/aocc-compiler-{{name}}.tar
130+
targets:
131+
- 3.2.0
132+
- 4.0.0
133+
- type: tarballs
134+
check_exe: bin/flang --version
135+
dir: aocc-{{name}}
136+
untar_dir: aocc-compiler-{{name}}
137+
compression: xz
138+
url: https://download.amd.com/developer/eula/aocc/aocc-{{major}}-{{minor}}/aocc-compiler-{{name}}.tar
139+
targets:
140+
- name: 4.1.0
141+
major: 4
142+
minor: 1
143+
- name: 4.2.0
144+
major: 4
145+
minor: 2
146+
- name: 5.0.0
147+
major: 5
148+
minor: 0
149+
- name: 5.1.0
150+
major: 5
151+
minor: 1

0 commit comments

Comments
 (0)