From 10e4649293b46b15006b83deffa6dc1c6b72ed76 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sun, 1 Oct 2023 23:07:05 -0400 Subject: [PATCH] [SCons] Use gcc options by default for unknown compilers This allows using the generic 'cc' and 'c++' symlinks that are available on many systems. --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 1dd2fe121e1..0923aa4cbae 100644 --- a/SConstruct +++ b/SConstruct @@ -866,8 +866,9 @@ elif "clang" in env.subst("$CC"): config.select("clang") else: - logger.error(f"Unrecognized C compiler {env['CC']!r}") - sys.exit(1) + # Assume a GCC compatible compiler if nothing else + config.select("gcc") + if env["OS"] == "Windows": config.select("Windows")