Skip to content

Commit

Permalink
Jakt: Ensure cxx-compiler-path matches the compiler that compiled jakt (
Browse files Browse the repository at this point in the history
#4514)

The way that jakt calls out to a C++ compiler to compile the C++ source
files it generates is sensitive to which compiler compiled its runtime
library. Rather than using clang-trunk, use the same compiler that was
used in misc-builder: gcc-12.1.0. This does cause a warning or two, as
it seems gcc 12.1.0 doesn't implement [[unlikely]] yet, but that's
better than not being able to link executables at all.

This issue will likely come up again if the compiler used in
misc-builder to build the jakt compiler changes.
  • Loading branch information
ADKaster authored and mattgodbolt committed Jan 24, 2023
1 parent 9abd299 commit edcde1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etc/config/jakt.amazon.properties
Expand Up @@ -16,5 +16,4 @@ licensePreamble=Copyright (c) 2022, JT, Andreas Kling. All rights reserved.

compiler.selfhosted.exe=/opt/compiler-explorer/jakt-trunk/bin/jakt
compiler.selfhosted.name=jakt (trunk)
compiler.selfhosted.options=--runtime-path /opt/compiler-explorer/jakt-trunk/runtime --prettify-cpp-source --clang-format-path /opt/compiler-explorer/clang-trunk/bin/clang-format --dot-clang-format-path /opt/compiler-explorer/jakt-trunk/.clang-format --cxx-compiler-path /opt/compiler-explorer/clang-trunk/bin/clang++
compiler.selfhosted.alias=rustbased
compiler.selfhosted.options=--runtime-path /opt/compiler-explorer/jakt-trunk/runtime --prettify-cpp-source --clang-format-path /opt/compiler-explorer/clang-trunk/bin/clang-format --dot-clang-format-path /opt/compiler-explorer/jakt-trunk/.clang-format --cxx-compiler-path /opt/compiler-explorer/gcc-12.1.0/bin/g++

0 comments on commit edcde1f

Please sign in to comment.