Lines Matching +refs:env +refs:PATH
31 def get_parts_versions(env):
32 """Get Parts related versions given SCons environment env"""
37 def get_toolchain_versions(env):
38 """Get version of compilation toolchain given SCons environment env"""
40 if 'MSVC_VERSION' in env:
41 versions['compiler'] = 'MSVC ' + env['MSVC_VERSION']
42 cmd = env.subst('echo int main(){return 0;} > a.cpp'
45 elif 'GCC_VERSION' in env:
46 versions['compiler'] = 'GCC ' + env['GCC_VERSION']
47 if 'GXX_VERSION' in env:
48 versions['compiler'] += ' and GXX ' + env['GXX_VERSION']
50 cmd = env.subst('echo int main(){return 0;}'
53 cmd = env.subst('echo "int main(){return 0;}"'
57 cmd = env.subst('echo int main(){return 0;}'
60 cmd = env.subst('echo "int main(){return 0;}"'
68 if 'INTELC_VERSION' in env:
70 env['INTELC_VERSION'],
73 env['ENV']['PATH'] = str(env['ENV']['PATH'])
78 env=env['ENV'],
87 if 'MSVC_VERSION' in env:
110 def log_versions(env, include_toolchain=True):
111 """Log tools and libraries versions given SCons environment env
114 env: Scons environment.
118 versions = get_parts_versions(env)
120 versions.update(get_toolchain_versions(env))
314 env = DefaultEnvironment()
317 major = int(env.subst('$GCC_VERSION').partition('.')[0])
321 if major >= 6 and env['TARGET_OS'] == 'posix':
322 if 'INTELC_VERSION' not in env:
343 """.format(env.get('GCC_VERSION', 'unknown'), env.get('TARGET_OS', 'unknown'))
345 env.PrintError(error_msg)