Skip to content

Commit

Permalink
Merge pull request #172 from PyO3/cflags
Browse files Browse the repository at this point in the history
Automatically pass `CFLAGS`/`CPPFLAGS`/`CXXFLAGS`/`LDFLAGS`
  • Loading branch information
messense committed Apr 26, 2023
2 parents f3bf9bb + 1d353d1 commit 4a23358
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11738,6 +11738,10 @@ async function dockerBuild(container, maturinRelease, args) {
env.startsWith('PYO3_') ||
env.startsWith('TARGET_') ||
env.startsWith('CMAKE_') ||
env.startsWith('CFLAGS') ||
env.startsWith('CXXFLAGS') ||
env.startsWith('CPPFLAGS') ||
env.startsWith('LDFLAGS') ||
env.startsWith('ACTIONS_') ||
env.startsWith('SCCACHE_')) {
dockerEnvs.push('-e');
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ async function dockerBuild(
env.startsWith('PYO3_') ||
env.startsWith('TARGET_') ||
env.startsWith('CMAKE_') ||
env.startsWith('CFLAGS') ||
env.startsWith('CXXFLAGS') ||
env.startsWith('CPPFLAGS') ||
env.startsWith('LDFLAGS') ||
env.startsWith('ACTIONS_') ||
env.startsWith('SCCACHE_')
) {
Expand Down

0 comments on commit 4a23358

Please sign in to comment.