Skip to content

Commit

Permalink
[SCons] Use gcc options by default for unknown compilers
Browse files Browse the repository at this point in the history
This allows using the generic 'cc' and 'c++' symlinks that are
available on many systems.
  • Loading branch information
speth committed Oct 2, 2023
1 parent a930e71 commit 30df08a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 30df08a

Please sign in to comment.