If you add a new entry point in the unix shims, but forget to add it to entrypoints.c, you get a nice build error:
EXEC : error : /workspaces/runtime/src/libraries/Native/Unix/System.Security.Cryptography.Native/entrypoints.c file did not match entries exported from /workspaces/runtime/artifacts/obj/native/net6.0-Linux-Debug-x64/System.Security.Cryptography.Native/libSystem.Security.Cryptography.Native.OpenSsl.so [/workspaces/runtime/src/libraries/Native/build-native.proj]
DIFFERENCES FOUND:
CryptoNative_Foob
ninja: build stopped: subcommand failed.
This does not appear to work for macOS. Adding a new exported function and omitting it from entrypoints.c does not fail the build.
If you add a new entry point in the unix shims, but forget to add it to
entrypoints.c, you get a nice build error:This does not appear to work for macOS. Adding a new exported function and omitting it from
entrypoints.cdoes not fail the build.