You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
bf0a5f8995
- bump version to 0.0.20181109 - mercurial-devel obsolete - temporary patch for the following build error 'register' storage class specifier is deprecated and incompatible with C++17 see upstream issue https://bitbucket.org/facebook/hg-experimental/issues/15/build-fail-on-macos-1014
19 lines
694 B
Diff
19 lines
694 B
Diff
--- setup.py.orig 2019-03-01 11:39:55.000000000 +0100
|
|
+++ setup.py 2019-03-01 11:54:55.000000000 +0100
|
|
@@ -10,6 +10,7 @@
|
|
|
|
iswindows = os.name == 'nt'
|
|
WERROR = "/WX" if iswindows else "-Werror"
|
|
+WNOREGISTER = "" if iswindows else "-Wno-error=deprecated-register"
|
|
WSTRICTPROTOTYPES = None if iswindows else "-Werror=strict-prototypes"
|
|
WALL = "/Wall" if iswindows else "-Wall"
|
|
STDC99 = "" if iswindows else "-std=c99"
|
|
@@ -86,6 +87,7 @@
|
|
cflags.extend([NOOPTIMIZATION, PRODUCEDEBUGSYMBOLS])
|
|
else:
|
|
cflags.append(WERROR)
|
|
+ cflags.append(WNOREGISTER)
|
|
|
|
def get_env_path_list(var_name, default=None):
|
|
'''Get a path list from an environment variable. The variable is parsed as
|