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,6 +606,9 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# on macOS, /usr/bin/cpp defaults to clang rather than gcc (but we need gcc's)
|
# 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"]):
|
if args.cpp is None and sys.platform == "darwin" and "Free Software Foundation" not in exec_shell(["cpp", "--version"]):
|
||||||
|
if "Free Software Foundation" in exec_shell(["cpp-11", "--version"]):
|
||||||
|
args.cpp = "cpp-11"
|
||||||
|
else:
|
||||||
print("error: system C preprocessor is not GNU!")
|
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("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("Use 'brew' to obtain GNU cpp, then run this script again with the --cpp option, e.g.")
|
||||||
|
Loading…
Reference in New Issue
Block a user