Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 31, 2020

The closure compiler driver requires "java" to be in the PATH in order
to use the java backend.

https://github.com/google/closure-compiler-npm/blob/308b9e49e8f96211060a0dc466bafe99cddd9f96/packages/google-closure-compiler/lib/node/closure-compiler.js#L157

This is yet another attempt for fix #10304.

Also address issue from #10328 where --closure-args was not being
honored

@sbc100 sbc100 requested a review from kripken January 31, 2020 21:54
The closure compiler driver requires "java" to be in the PATH in order
to use the java backend.

https://github.com/google/closure-compiler-npm/blob/308b9e49e8f96211060a0dc466bafe99cddd9f96/packages/google-closure-compiler/lib/node/closure-compiler.js#L157

This is yet another attempt for fix #10304.

Also address issue from #10328 where --closure-args was not being
honored
env['PATH'] = env['PATH'] + os.pathsep + get_node_directory()
user_args = os.environ.get('EMCC_CLOSURE_ARGS', '')
def add_to_path(dirname):
env['PATH'] = env['PATH'] + os.pathsep + dirname
Copy link
Member

Choose a reason for hiding this comment

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

I think this function would be clearer after env = , then the reader knows what env is already.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point I completely missed that.

@sbc100 sbc100 merged commit 258a4a2 into master Feb 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the add_java_to_path branch February 2, 2020 18:34
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.

Closure compiler breakage on windows emscripten-releases builder

3 participants