From 52dd54e4b65b78ca1aba9bf79e1c8c18055581ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Wed, 26 Oct 2016 23:50:58 +0300 Subject: [PATCH] Add a variable EMSDK that points to the root of the Emscripten SDK. --- emsdk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emsdk b/emsdk index 17f4a14..d45f72d 100755 --- a/emsdk +++ b/emsdk @@ -1688,6 +1688,10 @@ def construct_env(tools_to_activate, permanent): print('') env_vars_to_add = [] + + # A core variable EMSDK points to the root of Emscripten SDK directory. + env_vars_to_add += [('EMSDK', to_unix_path(emsdk_path()))] + em_config_path = os.path.normpath(os.path.join(emscripten_config_directory, '.emscripten')) if not 'EM_CONFIG' in os.environ or to_unix_path(os.environ['EM_CONFIG']) != to_unix_path(em_config_path): env_vars_to_add += [('EM_CONFIG', em_config_path)]