Skip to content

Commit 30a3449

Browse files
fix non-PGO scenario
1 parent 9145ecb commit 30a3449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def build_extensions(self):
257257
# a small set of useful ones.
258258
compiler = os.environ.get('CC')
259259
# it's important to get CFLAGS from the environment for proper extension PGO support
260-
cflags = os.environ.get('CFLAGS')
260+
cflags = os.environ.get('CFLAGS', sysconfig.get_config_vars('CFLAGS')[0])
261261
args = {}
262262
# unfortunately, distutils doesn't let us provide separate C and C++
263263
# compilers

0 commit comments

Comments
 (0)