Skip to content
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

Xmake build flag parity with Cmake #518

Open
bitonality opened this issue May 18, 2024 · 0 comments
Open

Xmake build flag parity with Cmake #518

bitonality opened this issue May 18, 2024 · 0 comments

Comments

@bitonality
Copy link
Contributor

bitonality commented May 18, 2024

Did another parity pass on flags and I've identified three MSVC flags that are currently missing.

All build flavors:

/GR - Enable Run-Time Type Information

xxx_Shipping_xxx Flavors:

-DNDEBUG definition
/GL - Whole program optimization

  • This shaves a couple megabytes off of the finished DLL... Xmake supports this concept across compilers by allowing us to set the build.optimization.lto policy for targets instead of manually adding flags-per-compiler.

/permissive- - Standards conformance

xxx_Debug_xxx Flavors:

/RTC1 - Runtime error checks

I'm not sure how important the non /GL flags are (since they've gone somewhat unnoticed so far), but I'm raising this issue for due diligence sake.

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

No branches or pull requests

1 participant