1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Description: Disable optimisation flags
PyOpenCL manages its own CXXFLAGS which enable optimisation and disable
debug options. This patch disables setting of default optimisation levels
as this might conflict with hardening and DEB_BUILD_OPTIONS.
Forwarded: not-needed
Author: Tomasz Rybak <tomasz.rybak@post.pl>
Last-Update: 2016-08-11
Index: pyopencl-2016.1+git20160809/aksetup_helper.py
===================================================================
--- pyopencl-2016.1+git20160809.orig/aksetup_helper.py
+++ pyopencl-2016.1+git20160809/aksetup_helper.py
@@ -156,11 +156,11 @@ def hack_distutils(debug=False, fast_lin
if debug:
cflags.append("-g")
else:
+ cflags.append("-DNDEBUG")
if what_opt is None:
pass
else:
cflags.append("-O%s" % what_opt)
- cflags.append("-DNDEBUG")
cvars['OPT'] = str.join(' ', cflags)
cvars["CFLAGS"] = cvars["BASECFLAGS"] + " " + cvars["OPT"]
Index: pyopencl-2016.1+git20160809/setup.py
===================================================================
--- pyopencl-2016.1+git20160809.orig/setup.py
+++ pyopencl-2016.1+git20160809/setup.py
@@ -97,7 +97,7 @@ def main():
check_git_submodules)
check_git_submodules()
- hack_distutils()
+ hack_distutils(what_opt=None)
conf = get_config(get_config_schema(),
warn_about_no_config=False)
|