2019-03-31 20:18:58 +01:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2020-06-20 12:28:12 +01:00
|
|
|
@@ -287,10 +287,6 @@ def init_env(
|
2019-03-31 20:18:58 +01:00
|
|
|
cppflags += shlex.split(os.environ.get('CPPFLAGS', ''))
|
|
|
|
cflags += shlex.split(os.environ.get('CFLAGS', ''))
|
|
|
|
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
|
|
|
|
- if not debug and not sanitize:
|
|
|
|
- # See https://github.com/google/sanitizers/issues/647
|
2020-03-24 11:05:05 +00:00
|
|
|
- cflags.append('-flto')
|
|
|
|
- ldflags.append('-flto')
|
2019-03-31 20:18:58 +01:00
|
|
|
|
|
|
|
if profile:
|
|
|
|
cppflags.append('-DWITH_PROFILER')
|