mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
use cpp-11 if installed on macOS
This commit is contained in:
parent
508c8ea0c2
commit
932876f423
@ -606,11 +606,14 @@ if __name__ == "__main__":
|
||||
|
||||
# on macOS, /usr/bin/cpp defaults to clang rather than gcc (but we need gcc's)
|
||||
if args.cpp is None and sys.platform == "darwin" and "Free Software Foundation" not in exec_shell(["cpp", "--version"]):
|
||||
print("error: system C preprocessor is not GNU!")
|
||||
print("This is a known issue on macOS - only clang's cpp is installed by default.")
|
||||
print("Use 'brew' to obtain GNU cpp, then run this script again with the --cpp option, e.g.")
|
||||
print(" ./configure --cpp cpp-11")
|
||||
exit(1)
|
||||
if "Free Software Foundation" in exec_shell(["cpp-11", "--version"]):
|
||||
args.cpp = "cpp-11"
|
||||
else:
|
||||
print("error: system C preprocessor is not GNU!")
|
||||
print("This is a known issue on macOS - only clang's cpp is installed by default.")
|
||||
print("Use 'brew' to obtain GNU cpp, then run this script again with the --cpp option, e.g.")
|
||||
print(" ./configure --cpp cpp-11")
|
||||
exit(1)
|
||||
|
||||
# default version behaviour is to only do those that exist
|
||||
if len(args.version) > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user