Skip to content

Commit

Permalink
try more to appease win bots
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Apr 3, 2020
1 parent e875ba1 commit 8838d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/cmake/modules/AddLLVM.cmake
Expand Up @@ -1457,7 +1457,7 @@ function(configure_lit_site_cfg site_in site_out)

string(CONCAT LIT_SITE_CFG_IN_HEADER "${LIT_SITE_CFG_IN_HEADER}\n\n"
"# Allow generated lit.site.cfg.py to be relocatable.\n"
"def path(p): return os.path.join(os.path.dirname(__file__), p) if p else ''\n"
"def path(p): return os.path.join(os.path.dirname(__file__), p).replace(os.sep, '/') if p else ''\n"
)

# Override config_target_triple (and the env)
Expand Down Expand Up @@ -1486,7 +1486,7 @@ function(configure_lit_site_cfg site_in site_out)
string(REPLACE ";" "\\;" ARG_PATH_VALUES_ESCAPED "${ARG_PATH_VALUES}")
get_filename_component(OUTPUT_DIR ${site_out} DIRECTORY)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
"import os, sys; sys.stdout.write(';'.join(os.path.relpath(p, sys.argv[1]).replace('\\\\', '/') if p else '' for p in sys.argv[2].split(';')))"
"import os, sys; sys.stdout.write(';'.join(os.path.relpath(p, sys.argv[1]).replace(os.sep, '/') if p else '' for p in sys.argv[2].split(';')))"
${OUTPUT_DIR}
${ARG_PATH_VALUES_ESCAPED}
OUTPUT_VARIABLE ARG_PATH_VALUES_RELATIVE)
Expand Down

0 comments on commit 8838d6d

Please sign in to comment.