mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-10 21:19:26 +02:00
windows-x64: Add CircleCI testing.
This commit is contained in:
@ -14,7 +14,7 @@ import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
def test_none_build_system(build_dir, language, source, linker_flags):
|
||||
def test_none_build_system(build_dir, language, source, linker_flags, exe_suffix):
|
||||
build_cmd = list()
|
||||
if language == 'C':
|
||||
compiler = os.getenv('CC', 'cc')
|
||||
@ -28,6 +28,9 @@ def test_none_build_system(build_dir, language, source, linker_flags):
|
||||
build_cmd.extend(linker_flags)
|
||||
build_cmd.append(source)
|
||||
|
||||
build_cmd.append('-o')
|
||||
build_cmd.append('a.out' + exe_suffix)
|
||||
|
||||
print('Building ' + source + ' by calling ' + compiler + '...')
|
||||
print(' '.join(build_cmd))
|
||||
sys.stdout.flush()
|
||||
@ -80,7 +83,8 @@ def test_source(source, language, build_system, emulator, linker_flags,
|
||||
os.chdir(build_dir)
|
||||
|
||||
if build_system == 'None':
|
||||
result += test_none_build_system(build_dir, language, source, linker_flags)
|
||||
result += test_none_build_system(build_dir, language, source,
|
||||
linker_flags, exe_suffix)
|
||||
elif build_system == 'CMake':
|
||||
result += test_cmake_build_system(build_dir, language, source, emulator,
|
||||
linker_flags, exe_suffix)
|
||||
|
Reference in New Issue
Block a user