-
Notifications
You must be signed in to change notification settings - Fork 205
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
nanobind: disable CRT insecure warning for clang-cl #1800
base: master
Are you sure you want to change the base?
Conversation
So you're saying it's needed to avoid deprecation notices in the nanobind library, rather than just avoiding them in the nanobind headers? |
The warning is emitted from
|
And I just try msvc (19.41.34123) with Now I'm not sure why we have this line here? Is it because some other version of msvc will emit this warning? |
@WillAyd
Remind me if I'm wrong about this.
In my understanding the intention of
compiler.get_id() == 'msvc'? dep_compile_args += ['-D_CRT_SECURE_NO_WARNINGS']
is to disable CRT insecure warning on windows.But I'm using clang-cl with nanobind and on win32, deprecation notice is not actually disabled, we need to add argument to command compiling nanobind itself.
we may should also add
-Wno-deprecated-declarations
toclang
when it's windows,but I haven't be able to make clang work with meson on win32 yet.looks like it's broken by default, mesonbuild/meson#10022 . Maybe consider this after it's fixed by meson.