this repo has no description

Default to clang in build_rev

GCC is throwing errors about unknown pragmas.

authored by bernsteinbear.com and committed by

Max Bernstein c6b77bfa b2b53889

+11
+11
benchmarks/quickbench/build_rev.py
··· 36 36 ] 37 37 38 38 39 + def compiler_flags(): 40 + clang = shutil.which("clang") 41 + if not clang: 42 + return [] 43 + return [ 44 + f"-DCMAKE_C_COMPILER=clang", 45 + f"-DCMAKE_CXX_COMPILER=clang++", 46 + ] 47 + 48 + 39 49 def build(repo_root, builddir, sourcedir): 40 50 cmake_flags = [ 41 51 "-S", ··· 45 55 f"-DCMAKE_TOOLCHAIN_FILE={sourcedir}/util/linux.cmake", 46 56 "-DCMAKE_BUILD_TYPE=Release", 47 57 *ccache_flags(), 58 + *compiler_flags(), 48 59 ] 49 60 run( 50 61 ["cmake", "-GNinja"] + cmake_flags,