-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
SCons: Fix Ninja compilation with MSVC #90208
Conversation
This breaks GCC/Clang:
The angle brackets |
40d4b85
to
7918d50
Compare
config_path = "thirdparty/mbedtls/include/godot_core_mbedtls_config.h" | ||
config_path = f"<{config_path}>" if env_crypto["ninja"] and env_crypto.msvc else f'\\"{config_path}\\"' | ||
env_crypto.Append(CPPDEFINES=[("MBEDTLS_CONFIG_FILE", config_path)]) |
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.
That's starting to be a bit convoluted...
I guess it's fine for now, but it would be worth figuring out why it's not being escaped properly by Ninja+MSVC, and how upstream mbedtls even expect this define to be passed in a way that won't break on some platforms.
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.
Yeah, it's not the prettiest solution & is very much a workaround. It should be reverted once the issue is ironed out in SCons, but that'll require some digging.
Thanks! |
Incorporates a handful of fixes brought up in the initial Ninja PR1, allowing MSVC builds to successfully compile.
Footnotes
https://github.com/godotengine/godot/pull/89452#issuecomment-2028338110 ↩