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 4, 2023
1 parent 2693de6 commit 7eed1bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,10 @@ 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
logger.warning(f"Unrecognized C compiler {env['CC']!r}")
config.select("gcc")


if env["OS"] == "Windows":
config.select("Windows")
Expand Down

0 comments on commit 7eed1bd

Please sign in to comment.