@@ -1508,7 +1508,7 @@ def load_em_config():
1508
1508
pass
1509
1509
1510
1510
1511
- def generate_em_config (active_tools ):
1511
+ def generate_em_config (active_tools , permanently_activate , system ):
1512
1512
cfg = 'import os\n '
1513
1513
cfg += "emsdk_path = os.path.dirname(os.getenv('EM_CONFIG')).replace('\\ \\ ', '/')\n "
1514
1514
@@ -1546,7 +1546,14 @@ def generate_em_config(active_tools):
1546
1546
rmfile (os .path .join (EMSDK_PATH , ".emscripten_sanity" ))
1547
1547
1548
1548
path_add = get_required_path (active_tools )
1549
- if not WINDOWS :
1549
+
1550
+ # Give some recommended next step, depending on the platform
1551
+ if WINDOWS :
1552
+ if not permanently_activate and not system :
1553
+ print ('Next steps:' )
1554
+ print ('- Consider running `emsdk activate` with --permanent or --system' )
1555
+ print (' to have emsdk settings available on startup.' )
1556
+ else :
1550
1557
emsdk_env = sdk_path ('emsdk_env.sh' )
1551
1558
print ('Next steps:' )
1552
1559
print ('- To conveniently access emsdk tools from the command line,' )
@@ -2413,7 +2420,7 @@ def set_active_tools(tools_to_activate, permanently_activate, system):
2413
2420
print ('Setting the following tools as active:\n ' + '\n ' .join (map (lambda x : str (x ), tools )))
2414
2421
print ('' )
2415
2422
2416
- generate_em_config (tools_to_activate )
2423
+ generate_em_config (tools_to_activate , permanently_activate , system )
2417
2424
2418
2425
# Construct a .bat or .ps1 script that will be invoked to set env. vars and PATH
2419
2426
# We only do this on cmd or powershell since emsdk.bat/ps1 is able to modify the
0 commit comments