-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails when using ccache in CC environment variable #178
Comments
dbnicholson
added a commit
to dbnicholson/python-zstandard
that referenced
this issue
Jul 21, 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 indygreg#178.
indygreg
pushed a commit
that referenced
this issue
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 issue
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make_cffi.py
assumes the first argument of the distutils compiler will work as the preprocessor. That fails when usingccache
by prepending it in theCC
environment variable likeCC="ccache gcc"
. This is a regression from 0d1329a.The text was updated successfully, but these errors were encountered: