Skip to content

Add more toolchain flags for Windows, required by math libs. #351

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

Merged
merged 2 commits into from
Apr 7, 2025

Conversation

ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Apr 3, 2025

Progress on #36.

This, together with #358, fixes test compilation for hipCUB and rocThrust.

Details:

Base automatically changed from users/scotttodd/windows-math-prim to users/scotttodd/windows-math-fft April 7, 2025 16:51
@ScottTodd ScottTodd force-pushed the users/scotttodd/windows-math-fft branch from f9fd2f7 to daad0ce Compare April 7, 2025 16:57
Base automatically changed from users/scotttodd/windows-math-fft to main April 7, 2025 19:06
@ScottTodd ScottTodd force-pushed the users/scotttodd/windows-math-extra-flags branch from ceb4ce9 to 530a072 Compare April 7, 2025 19:19
@ScottTodd ScottTodd marked this pull request as ready for review April 7, 2025 22:13
@ScottTodd ScottTodd requested review from marbre and amd-justchen April 7, 2025 22:14
string(APPEND _toolchain_contents "set(CMAKE_C_FLAGS_INIT )\n")
string(APPEND _toolchain_contents "set(CMAKE_CXX_FLAGS_INIT \"-DWIN32 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX \")\n")
string(APPEND _toolchain_contents "set(CMAKE_CXX_FLAGS_INIT \"-DWIN32 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -fms-extensions -fms-compatibility -D_ENABLE_EXTENDED_ALIGNED_STORAGE \")\n")
Copy link
Member Author

Choose a reason for hiding this comment

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

Oh wait... these are getting sent to the regular toolchain too:

[build] [amd-llvm] [188/5733   2% :: 0.752] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\UnicodeNameToCodepointGenerated.cpp.obj
[build] [amd-llvm] cl : Command line warning D9002 : ignoring unknown option '-fms-extensions'
[build] [amd-llvm] cl : Command line warning D9002 : ignoring unknown option '-fms-compatibility'

I'll adjust the logic a bit.

@ScottTodd ScottTodd force-pushed the users/scotttodd/windows-math-extra-flags branch from 1c55238 to 4599c59 Compare April 7, 2025 22:36
@ScottTodd ScottTodd merged commit a24a1a0 into main Apr 7, 2025
1 check passed
@ScottTodd ScottTodd deleted the users/scotttodd/windows-math-extra-flags branch April 7, 2025 22:45
@github-project-automation github-project-automation bot moved this from TODO to Done in TheRock Triage Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants