5
emsdk.py
5
emsdk.py
@@ -3047,13 +3047,12 @@ def main(args):
|
||||
print('')
|
||||
|
||||
tools_to_activate = currently_active_tools()
|
||||
args = [x for x in args if not x.startswith('--')]
|
||||
for arg in args:
|
||||
tool = find_tool(arg)
|
||||
if tool is None:
|
||||
tool = find_sdk(arg)
|
||||
if tool is None:
|
||||
error_on_missing_tool(arg)
|
||||
if tool is None:
|
||||
error_on_missing_tool(arg)
|
||||
tools_to_activate += [tool]
|
||||
if not tools_to_activate:
|
||||
errlog('No tools/SDKs specified to activate! Usage:\n emsdk activate tool/sdk1 [tool/sdk2] [...]')
|
||||
|
||||
@@ -15,8 +15,7 @@ try {
|
||||
|
||||
& "$repo_root/emsdk.ps1" install latest
|
||||
|
||||
$esc = '--%'
|
||||
& "$repo_root/emsdk.ps1" activate latest $esc $env:PERMANENT_FLAG $env:SYSTEM_FLAG
|
||||
& "$repo_root/emsdk.ps1" activate latest $env:PERMANENT_FLAG $env:SYSTEM_FLAG
|
||||
|
||||
if ($env:SYSTEM_FLAG) {
|
||||
$env_type = "Machine"
|
||||
|
||||
Reference in New Issue
Block a user