1
0
Fork 0

export command on win is 'set'

This commit is contained in:
Mikhail Goncharov 2021-03-19 15:36:01 +01:00
parent 609f614040
commit f3367dc03e

View file

@ -154,7 +154,10 @@ def run(projects: str, repo_path: str, config_file_path: str = None, *, dry_run:
commands.append("mkdir build")
commands.append("cd build")
for k, v in config.environment.items():
commands.append(f'export {k}="{v}"')
if config.operating_system == OperatingSystem.Linux:
commands.append(f'export {k}="{v}"')
else:
commands.append(f'set {k}={v}')
env = _create_env(config)
llvm_enable_projects = _select_projects(config, projects, repo_path)
print('Enabled projects: {}'.format(llvm_enable_projects), flush=True)