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
Precompile windows gcc 8 #1039
Precompile windows gcc 8 #1039
Conversation
@@ -32,6 +32,7 @@ jobs: | |||
shell: powershell | |||
- name: Build Math libs & add to PATH | |||
run: | | |||
make print-PRECOMPILED_HEADERS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a test that shows that its still disabled in the Github Action test with Rtools 3.5.
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One quick Q but looks good!
@@ -108,7 +108,11 @@ endif | |||
STAN_FLAGS=$(STAN_FLAG_THREADS)$(STAN_FLAG_MPI)$(STAN_FLAG_OPENCL) | |||
|
|||
ifeq ($(OS),Windows_NT) | |||
ifeq ($(shell expr $(CXX_MAJOR) \>= 8), 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also be checking they are using gcc and not clang or would it be fine in that case as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang on windows with cmdstan does not work at all (#736) so that didnt cross my mind. Will add a note there if we ever figure that out.
Other option would be to keep the precompiled headers off in the off chance someone tries this with clang on Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the logic to also handle clang on Windows. As we have no idea if it works, I opted to disabling it by default.
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Summary:
This PR changes the makefile logic so that
PRECOMPILED_HEADERS=true
is automatically set on Windows if its using g++ 8 or newer (RTools 4.0 supplied toolchain).Currently its not used on Windows by default.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Rok Češnovar
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: