From 7825d70ed81e7a039ff92198af42cba2c5ef041f Mon Sep 17 00:00:00 2001 From: mhouppin <45004383+mhouppin@users.noreply.github.com> Date: Tue, 6 Sep 2022 11:49:50 +0200 Subject: [PATCH] Change the overridden Makefile variable name to CXX for C++ engines (#99) Also update Winter's compiler support since it currently fails to build on some g++ versions --- Client/Client.py | 4 ++-- OpenBench/config.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/Client.py b/Client/Client.py index a8693c9..f8f1f2d 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -228,8 +228,8 @@ def unzip_delete_file(source, outdir): def make_command(arguments, engine, src_path, network_path): - command = 'make CC=%s EXE=%s -j%s' % ( - COMPILERS[engine], engine, arguments.threads) + command = 'make %s=%s EXE=%s -j%s' % ( + ['CC', 'CXX']['++' in COMPILERS[engine]], COMPILERS[engine], engine, arguments.threads) if engine in CUSTOM_SETTINGS: command += ' '.join(CUSTOM_SETTINGS[engine]) diff --git a/OpenBench/config.py b/OpenBench/config.py index bea9663..a6e7015 100644 --- a/OpenBench/config.py +++ b/OpenBench/config.py @@ -260,7 +260,7 @@ OPENBENCH_CONFIG = { 'build' : { 'path' : '', - 'compilers' : ['clang++', 'g++'], + 'compilers' : ['clang++'], 'cpuflags' : ['POPCNT'], },