`c++filt` was taken sometimes from gcc-13.1.0 and sometimes from
gcc-snapshot, I took `llvm-cxxfilt` from just clang-trunk.
This PR is _just for clang C/C++ compilers_. Maybe it's better for some
other (non C/C++) llvm based compilers? Suggestions are welcome.
clang trunk for C was using gcc-9, which caused mismatch between
compiler and actual binutils supports:
/opt/compiler-explorer/gcc-9.2.0/lib/gcc/x86_64-linux-gnu/9.2.0/../../../../x86_64-linux-gnu/bin/ld:
warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported
GNU_PROPERTY_TYPE (5) type: 0xc0008002
This is not the case in the C++ config where we correctly use nightly
gcc.
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
And enable exectution for flang-new.
This assumes that LLVM flang is installed from `ninja install` rather
than a package manager, since I'm not sure any have it yet. So
it's `/usr/local/bin` instead of `/usr/bin`.
gfortran I've assumed is in `/usr/bin` to match the existing
settings in the file.
I removed the `ldPath` settings that the `amazon` config has because:
* Most of them refer to /opt/compiler-explorer.
* Removing the rest didn't prevent me from linking/running binaries.
flang-new used to require a seperate libpgmath library to produce
exectuables but this requirement has been removed so I've enabled
execution.
Python 3.12 has been released a while ago, but it seems that it’s not
yet been added to Compiler Explorer.
This PR also changes the license link to link to the actual CPython
license.
Corresponding infra PR:
https://github.com/compiler-explorer/infra/pull/1207
---------
Co-authored-by: Matt Godbolt <matt@godbolt.org>
Adds Dex2OatCompiler, which applies to the Android Java and Android
Kotlin languages. Dex2OatCompiler runs on .dex files output by
D8Compiler, which in turn runs on .class files output by JavaCompiler or
KotlinCompiler. A parser has been added for dex2oat optimization passes.
Fixes#5351
I just copied the changes in #4358 and checked that it works locally
with
```sh
make debug EXTRA_ARGS='--language zig'
```
although I had to make the following changes to get it to work locally:
```diff
diff --git a/etc/config/zig.defaults.properties b/etc/config/zig.defaults.properties
index 008aa215..f4db084c 100644
--- a/etc/config/zig.defaults.properties
+++ b/etc/config/zig.defaults.properties
@@ -1,4 +1,4 @@
-compilers=/usr/bin/zig
+compilers=/opt/homebrew/bin/zig
supportsBinary=true
compilerType=zig
objdumper=objdump
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts
index b0d55432..8e33767f 100644
--- a/lib/compilers/zig.ts
+++ b/lib/compilers/zig.ts
@@ -44,6 +44,7 @@ export class ZigCompiler extends BaseCompiler {
super(info, env);
this.compiler.supportsIntel = true;
this.compiler.supportsIrView = true;
+ this.compiler.semver = '0.11.0';
this.self_hosted_cli =
this.compiler.semver === 'trunk' ||
```
The previous highest version was 2.35.1 and between then and 2.38,
support for many new extensions has been added.
This includes the Scalable Vector Extension (SVE), it's own extension
SVE2, memcopy acceleration (MOPS) and many more.
I checked the version number by installing locally:
```
/opt/compiler-explorer/arm64/gcc-13.2.0/aarch64-unknown-linux-gnu/bin$ ./aarch64-unknown-linux-gnu-as --version
GNU assembler (GNU Binutils) 2.38
```
So that we can handle the new encodings, the objdumper for this category
is also updated to the same version.
Resolves#5983.
This is not 100% accurate as it matches `target-cpu=native` without a
preceding `-C`, but there isn’t an obvious case where this would occur
in an otherwise valid compiler invocation, so it’s probably good enough?
Use gcc-12.3 until gcc-13.3 is released (includes a fix for a bug in
current 13.2).
Should be switch back to gcc-13.3 when it is released.
fixes#5943
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
First, thanks for maintaining compiler explorer. It is a wonderful tool.
I have been playing with EDG/reflections on godbolt.org and decided to
make a proof of concept library for python bindings that relies on
reflections. To make my life easier, I wanted to depend on pybind11,
instead of re-learning CPython API.
That brings me to this pull request. I would appreciate having pybind11
available in godbolt.
I am not sure if I am missing anything regarding this. Pybind11 is
header-only and the path specified is the one that should be passed to
`-isystem`.
Also, the issue template mentions tests, but I am not sure how or even
if tests are needed for this change.
I will also understand if you would rather not add more libraries to the
compiler explorer image for the sake of its size.