base: Add cmake wrapper scripts for CMAKE_TOOLCHAIN_FILE

All images should define this variables.

Disable build tests on the base image because it is not configured for cross
compiling.
This commit is contained in:
Matt McCormick committed 2016-07-22 08:48:59 -04:00
1 parent 041eb8702b
commit 1ed3548655
5 files changed
+23 -13

No files matched your search

-4
View File
@@ -58,10 +58,6 @@ def test_cmake_build_system(build_dir, language, source, emulator, linker_flags,
if linker_flags:
cmake_configuration_cmd.insert(1,
'-DCMAKE_EXE_LINKER_FLAGS="{0}"'.format(' '.join(linker_flags)))
toolchain_file = os.getenv('CMAKE_TOOLCHAIN_FILE')
if toolchain_file:
cmake_configuration_cmd.insert(1,
'-DCMAKE_TOOLCHAIN_FILE={0}'.format(toolchain_file))
print(' '.join(cmake_configuration_cmd))
sys.stdout.flush()
if subprocess.call(cmake_configuration_cmd):