Skip to content

Remove explicit support for JAVA and running closure compiler via java - #20919

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove_java
Dec 15, 2023
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove_java

Conversation

@sbc100

@sbc100 sbc100 commented Dec 14, 2023

Copy link
Copy Markdown
Collaborator

It should still be possible for a user to explictly run the java version of closure using EMCC_CLOSURE_ARGS=--platform=java or --closure-args=--platform=java, but this isn't something we need to have explict support for and its not something we test.

Comment thread ChangeLog.md Resolved
@sbc100
sbc100 force-pushed the remove_java branch 2 times, most recently from 0fbab35 to d466694 Compare December 14, 2023 18:01

@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.

What is the default that is used if we don't specify which one? (And, is it different/slower than what we did before this PR?)

@sbc100

sbc100 commented Dec 14, 2023

Copy link
Copy Markdown
Collaborator Author

What is the default that is used if we don't specify which one? (And, is it different/slower than what we did before this PR?)

The default is to use the native version of closure compiler. That is the only version we currently test. If folks want to do --platform=java I think all they would need to do is make sure java exists in their PATH.

It should still be possible for a user to explictly run the java
version of closure using `EMCC_CLOSURE_ARGS=--platform=java` or
`--closure-args=--platform=java`, but this isn't something we need to
have explict support for and its not something we test.
@sbc100
sbc100 merged commit 577d55d into emscripten-core:main Dec 15, 2023
@sbc100
sbc100 deleted the remove_java branch December 15, 2023 00:36
sbc100 added a commit to emscripten-core/emsdk that referenced this pull request Dec 15, 2023
We use the native version of closure compiler these days so we don't
need to install java on windows IIUC.

See emscripten-core/emscripten#20919
sbc100 added a commit to emscripten-core/emsdk that referenced this pull request Dec 15, 2023
We use the native version of closure compiler these days so we don't
need to install java on windows IIUC.

See emscripten-core/emscripten#20919
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 17, 2024
This is a partial revert of emscripten-core#20919.

It turns out that we were still depending on falling back to the java
version of closure compiler in some cases.  Specifically, on macOS arm64
when Rosetta is not installed, we were falling back to the Java version
since google-closure-compiler doesn't ship arm64 binaries.  I imagine
the same will be true of linux-arm64.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 17, 2024
This is a partial revert of emscripten-core#20919.

It turns out that we were still depending on falling back to the java
version of closure compiler in some cases.  Specifically, on macOS arm64
when Rosetta is not installed, we were falling back to the Java version
since google-closure-compiler doesn't ship arm64 binaries.  I imagine
the same will be true of linux-arm64.
sbc100 added a commit that referenced this pull request Jan 17, 2024
This is a partial revert of #20919.

It turns out that we were still depending on falling back to the java
version of closure compiler in some cases.  Specifically, on macOS arm64
when Rosetta is not installed, we were falling back to the Java version
since google-closure-compiler doesn't ship arm64 binaries.  I imagine
the same will be true of linux-arm64.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 17, 2024
This change also reverts the changes made to test_other.py in emscripten-core#20919.
sbc100 added a commit that referenced this pull request Jan 17, 2024
This change also reverts the changes made to test_other.py in #20919.
sbc100 added a commit to emscripten-core/emsdk that referenced this pull request Oct 28, 2024
We use the native version of closure compiler these days so we don't
need to install java on windows IIUC.

See emscripten-core/emscripten#20919
sbc100 added a commit to emscripten-core/emsdk that referenced this pull request Oct 29, 2024
We use the native version of closure compiler these days so we don't
need to install java on windows IIUC.

See emscripten-core/emscripten#20919
wtu87830895-svg pushed a commit to wtu87830895-svg/emsdk2 that referenced this pull request Dec 20, 2025
We use the native version of closure compiler these days so we don't
need to install java on windows IIUC.

See emscripten-core/emscripten#20919
mmorel-35 pushed a commit to mmorel-35/emsdk that referenced this pull request Feb 3, 2026
We use the native version of closure compiler these days so we don't
need to install java on windows IIUC.

See emscripten-core/emscripten#20919
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.

3 participants