-
Notifications
You must be signed in to change notification settings - Fork 31
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
Depecrated --llvm-lto used in Emscripten upstream backend #13
Comments
Oh, so that was the leftover TODO i forgot to fix.
Wouldn't the Platform file be able to do that? There you probably wouldn't fill the
Err... you mean 6? On Travis I'm deliberately using a macOS image with outdated homebrew ("chaotic evil" backwards compatibility checks, heh) and there it reports 6.0.1 for 1.8.44: https://travis-ci.com/github/mosra/corrade/jobs/428039848#L443-L445 But anyway, that matches my experience (I didn't have the Besides checking compiler version, wasn't there some option that switched between the two? Or I misremember and you have to literally grab a different build? |
How does that file tie into CMake? Not really finding much info on Google. Does CMake call whatever
You need to install and activate fastcomp/upstream with Try |
Interesting, heh. All relevant info seems to be gone now, it was only in the old wiki (expand): https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/CrossCompiling#setting-up-the-system-and-toolchain
Ah. I'm using ArchLinux packages (or Homebrew), so I guess ... it just uses the default in either case, so < 1.39 was fastcomp, 1.39 and newer is upstream. |
The Emscripten upstream backend uses the standard
-flto
option and emits a warning when--llvm-lto
is used.One way to check whether the fastcomp backend is being used is to check for Clang 6.0.1 or older. Fastcomp stopped being supported with Emscripten > 1.40.1 which has that version. Upstream as old as 1.38.33 (oldest version I could get from emsdk) uses Clang 9.
However, the following doesn't work because the toolchain file doesn't have access the compiler version (
CMAKE_CXX_COMPILER_VERSION
is only detected by CMake afterwards):I fixed it with a
in my code but the correct flag in the toolchain depending on the backend would be nicer.
The text was updated successfully, but these errors were encountered: