Skip to content

Conversation

@dbnicholson
Copy link
Contributor

On Unix like systems, distutils will usually set the preprocessor
attribute to the appropriate command. On MSVC it never sets the
preprocessor, though. In either case, try to use it and only fallback to
using the compiler if needed. Using compiler.compiler[0] breaks use of
ccache when inserted in the CC environment variable.

This is a regression from 0d1329a.

Closes #178.

On Unix like systems, distutils will usually set the preprocessor
attribute to the appropriate command. On MSVC it never sets the
preprocessor, though. In either case, try to use it and only fallback to
using the compiler if needed. Using compiler.compiler[0] breaks use of
ccache when inserted in the CC environment variable.

This is a regression from 0d1329a.

Closes indygreg#178.
@dbnicholson
Copy link
Contributor Author

Ping? Anything I can do to help get this merged?

Copy link
Owner

@indygreg indygreg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Thank you for the contribution. And sorry about the delay: I typically only look at this project every few months, as it is reasonably stable.

indygreg pushed a commit that referenced this pull request Oct 29, 2022
On Unix like systems, distutils will usually set the preprocessor
attribute to the appropriate command. On MSVC it never sets the
preprocessor, though. In either case, try to use it and only fallback to
using the compiler if needed. Using compiler.compiler[0] breaks use of
ccache when inserted in the CC environment variable.

This is a regression from 0d1329a.

Closes #178.
Closes #179.
indygreg pushed a commit that referenced this pull request Oct 29, 2022
On Unix like systems, distutils will usually set the preprocessor
attribute to the appropriate command. On MSVC it never sets the
preprocessor, though. In either case, try to use it and only fallback to
using the compiler if needed. Using compiler.compiler[0] breaks use of
ccache when inserted in the CC environment variable.

This is a regression from 0d1329a.

Closes #178.
Closes #179.
@dbnicholson
Copy link
Contributor Author

No problem. I'm certainly guilty of letting contributions bitrot.

@indygreg indygreg closed this in 41f7139 Oct 30, 2022
@dbnicholson dbnicholson deleted the preprocessor branch October 30, 2022 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails when using ccache in CC environment variable

2 participants