Absolutise path to cmake crosstool file (#870)
This commit is contained in:
parent
26eadbcd0d
commit
33bce66655
|
@ -188,7 +188,7 @@ def _create_crosstool_file_text(toolchain_dict, user_cache, user_env):
|
|||
lines.append('set({} "$$__var_{}$$")'.format(key, key))
|
||||
|
||||
cache_entries.update({
|
||||
"CMAKE_TOOLCHAIN_FILE": "crosstool_bazel.cmake",
|
||||
"CMAKE_TOOLCHAIN_FILE": "$$BUILD_TMPDIR$$/crosstool_bazel.cmake",
|
||||
})
|
||||
return struct(
|
||||
commands = sorted(crosstool_vars) + ["cat > crosstool_bazel.cmake << EOF"] + sorted(lines) + ["EOF", ""],
|
||||
|
|
|
@ -425,7 +425,7 @@ set(CMAKE_SHARED_LINKER_FLAGS_INIT "$$__var_CMAKE_SHARED_LINKER_FLAGS_INIT$$")
|
|||
EOF
|
||||
|
||||
##enable_tracing##
|
||||
cmake -DNOFORTRAN="on" -DCMAKE_TOOLCHAIN_FILE="crosstool_bazel.cmake" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="test_rule" -DCMAKE_PREFIX_PATH="$$EXT_BUILD_DEPS$$" -DCMAKE_RANLIB="" --debug-output -Wdev -G 'Ninja' $$EXT_BUILD_ROOT$$/external/test_rule
|
||||
cmake -DNOFORTRAN="on" -DCMAKE_TOOLCHAIN_FILE="$$BUILD_TMPDIR$$/crosstool_bazel.cmake" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="test_rule" -DCMAKE_PREFIX_PATH="$$EXT_BUILD_DEPS$$" -DCMAKE_RANLIB="" --debug-output -Wdev -G 'Ninja' $$EXT_BUILD_ROOT$$/external/test_rule
|
||||
##disable_tracing##
|
||||
"""
|
||||
asserts.equals(env, expected.splitlines(), script)
|
||||
|
@ -574,7 +574,7 @@ EOF
|
|||
|
||||
export CUSTOM_ENV="YES"
|
||||
##enable_tracing##
|
||||
cmake -DCUSTOM_CACHE="YES" -DCMAKE_TOOLCHAIN_FILE="crosstool_bazel.cmake" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="test_rule" -DCMAKE_PREFIX_PATH="$$EXT_BUILD_DEPS$$" -DCMAKE_RANLIB="" --debug-output -Wdev -G 'Ninja' $$EXT_BUILD_ROOT$$/external/test_rule
|
||||
cmake -DCUSTOM_CACHE="YES" -DCMAKE_TOOLCHAIN_FILE="$$BUILD_TMPDIR$$/crosstool_bazel.cmake" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="test_rule" -DCMAKE_PREFIX_PATH="$$EXT_BUILD_DEPS$$" -DCMAKE_RANLIB="" --debug-output -Wdev -G 'Ninja' $$EXT_BUILD_ROOT$$/external/test_rule
|
||||
##disable_tracing##
|
||||
"""
|
||||
asserts.equals(env, expected.splitlines(), script)
|
||||
|
|
Loading…
Reference in New Issue