Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 30, 2020

This allows a compiler wrapper to be installed around the
underlying clang, but without changing the location of the
llvm installation or having to know where it is.

This is in contrast to other option LLVM_ROOT which points
emscripten at a different llvm build (and also replaces not
just clang but all the other llvm tools).

This mimikes the corresponding CMAKE option
CMAKE__COMPILER_WRAPPER.

The reason we allow the inner compiler to be wrapped like this
is that distributing the whole of emscripten to a distcc farm
or gomacc farm would otherwise be required.

Fixes: #12340

@sbc100 sbc100 requested a review from kripken September 30, 2020 15:36
@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 30, 2020

I could potentially split out the make_executable test changes and come of the emcc.py refactoring if you prefer?

This allows a compiler wrapper to be installed around the
underlying clang, but without changing the location of the
llvm installation or having to know where it is.

This is in contrast to other option LLVM_ROOT which points
emscripten at a different llvm build (and also replaces not
just clang but all the other llvm tools).

This mimikes the corresponding CMAKE option
CMAKE_<LANG>_COMPILER_WRAPPER.

The reason we allow the inner compiler to be wrapped like this
is that distributing the whole of emscripten to a distcc farm
or gomacc farm would otherwise be required.

Fixes: #12340
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with site docs. In "Building Projects" perhaps?

also add to changelog please.

@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 30, 2020

Done

@sbc100 sbc100 merged commit 8c78ffb into master Sep 30, 2020
@sbc100 sbc100 deleted the compiler_wrapper branch September 30, 2020 18:36
@vadimkantorov
Copy link

@sbc100 Does it allow to specify a wrapper around emcc as well? Like my ccskip.py

@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 30, 2020

No that would be different thing. This is like an inner wrapper for clang that emcc runs.

What you want is some kind of outer wrapper that replaces emcc completely.

@sbc100 sbc100 mentioned this pull request Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replacement for deprecated EMMAKEN_COMPILER?

4 participants