passing icpc compiler for knc target

This commit is contained in:
Anton Mitrokhin
2014-07-19 14:49:49 +04:00
parent 9dd1d67a39
commit 7c3a2435b3
2 changed files with 10 additions and 4 deletions

View File

@@ -438,9 +438,7 @@ def validation_run(only, only_targets, reference_branch, number, notify, update,
LLVM = []
targets = []
sde_targets = []
# sometimes clang++ is not avaluable. if --ispc-build-compiler = gcc we will pass in g++ compiler
if options.ispc_build_compiler == "gcc":
stability.compiler_exe = "g++"
# parsing option only, update parameters of run
if "-O2" in only:
opts.append(False)
@@ -521,6 +519,14 @@ def validation_run(only, only_targets, reference_branch, number, notify, update,
for j in range(0,len(targets)):
stability.target = targets[j]
stability.wrapexe = ""
# choosing right compiler for a given target
# sometimes clang++ is not avaluable. if --ispc-build-compiler = gcc we will pass in g++ compiler
if options.ispc_build_compiler == "gcc":
stability.compiler_exe = "g++"
# but 'knc' target is supported only by icpc, so set explicitly
if "knc" in targets[j]:
stability.compiler_exe = "icpc"
# now set archs for targets
if "generic" in targets[j]:
arch = gen_archs
elif "knc" in targets[j]: