Skip to content

Add CACHE setting to config file (for embedded users)#495

Merged
sbc100 merged 2 commits into
masterfrom
em_cache
May 7, 2020
Merged

Add CACHE setting to config file (for embedded users)#495
sbc100 merged 2 commits into
masterfrom
em_cache

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented May 7, 2020

Copy link
Copy Markdown
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 aside from the ' stuff that I can't figure out

Comment thread emsdk.py

if embedded:
cfg = cfg.replace(emscripten_config_directory, "' + emsdk_path + '")
cfg = cfg.replace("'" + emscripten_config_directory, "emsdk_path + '")
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.

is this intentional? if so, what's going on here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sorry this is general cleanup on the config.

It changes pattern to:

CACHE = emsdk_path + '/.emscripten_cache'
NODE_JS = emsdk_path + '/node/12.9.1_64bit/bin/node'
LLVM_ROOT = emsdk_path + '/fastcomp/fastcomp/bin'
BINARYEN_ROOT = emsdk_path + '/fastcomp'
EMSCRIPTEN_ROOT = emsdk_path + '/fastcomp/emscripten'
EMSCRIPTEN_NATIVE_OPTIMIZER = emsdk_path + '/fastcomp/bin/optimizer'

From the more redundant form:

CACHE = '' + emsdk_path + '/.emscripten_cache'
NODE_JS = '' + emsdk_path + '/node/12.9.1_64bit/bin/node'
LLVM_ROOT = '' + emsdk_path + '/fastcomp/fastcomp/bin'
BINARYEN_ROOT = '' + emsdk_path + '/fastcomp'
EMSCRIPTEN_ROOT = '' + emsdk_path + '/fastcomp/emscripten'
EMSCRIPTEN_NATIVE_OPTIMIZER = '' + emsdk_path + '/fastcomp/bin/optimizer'

Comment thread emsdk.py Outdated
@sbc100 sbc100 merged commit 683cead into master May 7, 2020
@sbc100 sbc100 deleted the em_cache branch May 7, 2020 19:12
sbc100 added a commit that referenced this pull request May 8, 2020
Ooops, I guess even the most innocent-seeming change can have
unintended consequences. Switching to embedded by default will at
least make this path more tested in the future.

Fixed #497
sbc100 added a commit that referenced this pull request May 8, 2020
Ooops, I guess even the most innocent-seeming change can have
unintended consequences. Switching to embedded by default will at
least make this path more tested in the future.

Fixed #497
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.

2 participants