File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Respect ` PYO3_PYTHON ` and ` PYTHON_SYS_EXECUTABLE ` environment variables if set. [ #96 ] ( https://github.com/PyO3/setuptools-rust/pull/96 )
6
6
- Add runtime dependency on setuptools >= 46.1. [ #102 ] ( https://github.com/PyO3/setuptools-rust/pull/102 )
7
+ - Append to, rather than replace, existing RUSTFLAGS when building. [ #103 ] ( https://github.com/PyO3/setuptools-rust/pull/103 )
7
8
8
9
## 0.11.6 (2020-12-13)
9
10
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def build_extension(self, ext):
186
186
rustflags += " -C target-cpu=native"
187
187
188
188
if rustflags :
189
- env ["RUSTFLAGS" ] = rustflags
189
+ env ["RUSTFLAGS" ] = ( env . get ( "RUSTFLAGS" , "" ) + " " + rustflags ). strip ()
190
190
191
191
# Execute cargo
192
192
try :
You can’t perform that action at this time.
0 commit comments