Skip to content

Add EM_COMPILER_WRAPPER as replacement for EMMAKEN_COMPILER - #12380

Merged
sbc100 merged 3 commits into
masterfrom
compiler_wrapper
Sep 30, 2020
Merged

sbc100 merged 3 commits into
masterfrom
compiler_wrapper

Conversation

@sbc100

@sbc100 sbc100 commented Sep 30, 2020

Copy link
Copy Markdown
Collaborator

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

sbc100 commented Sep 30, 2020

Copy link
Copy Markdown
Collaborator Author

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

@kripken kripken left a comment

Copy link
Copy Markdown
Member

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.

Comment thread tests/test_other.py Resolved
@sbc100

sbc100 commented Sep 30, 2020

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown

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

@sbc100

sbc100 commented Sep 30, 2020

Copy link
Copy Markdown
Collaborator Author

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.

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?

3 participants