Skip to content

Commit

Permalink
setup: do not pass -Werror during build
Browse files Browse the repository at this point in the history
This is generally unsuitable for distribution, as it may cause
failures on e.g. deprecation.
  • Loading branch information
danchr committed Jun 13, 2021
1 parent 1ad85a4 commit ec8c4c3
Show file tree
Hide file tree
Showing 135 changed files with 0 additions and 403 deletions.
3 changes: 0 additions & 3 deletions pyobjc-core/Tools/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
1 change: 0 additions & 1 deletion pyobjc-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def get_sdk_level(sdk):
"-Wshorten-64-to-32",
# "-fsanitize=address", "-fsanitize=undefined", "-fno-sanitize=vptr",
# "--analyze",
"-Werror",
"-I/usr/include/ffi",
# "-fvisibility=hidden",
# "-O3", "-flto",
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AVFoundation/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AVKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-Accessibility/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-Accounts/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AdServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AdSupport/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AddressBook/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AppTrackingTransparency/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AppleScriptKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AppleScriptObjC/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-ApplicationServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-AuthenticationServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-Automator/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-BusinessChat/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CFNetwork/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CalendarStore/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CallKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-ClassKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CloudKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-Cocoa/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-Collaboration/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-ColorSync/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-Contacts/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-ContactsUI/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreAudio/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreAudioKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreBluetooth/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreData/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreHaptics/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreLocation/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreMIDI/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreML/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreMedia/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreMediaIO/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreMotion/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
3 changes: 0 additions & 3 deletions pyobjc-framework-CoreSpotlight/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def Extension(*args, **kwds):
if os_level == "10.4":
cflags.append("-DNO_OBJC2_RUNTIME")

if "-Werror" not in cflags:
cflags.append("-Werror")

if "extra_compile_args" in kwds:
kwds["extra_compile_args"] = kwds["extra_compile_args"] + cflags
else:
Expand Down
Loading

0 comments on commit ec8c4c3

Please sign in to comment.