mirror of
https://github.com/janet-lang/janet
synced 2025-09-12 15:56:07 +00:00
Don't try for backwards compat with compiled modules - Address #1639
This guarantee is difficult to maintain and shouldn't be needed.
This commit is contained in:
@@ -66,7 +66,7 @@ JanetModule janet_native(const char *name, const uint8_t **error) {
|
|||||||
JanetBuildConfig modconf = getter();
|
JanetBuildConfig modconf = getter();
|
||||||
JanetBuildConfig host = janet_config_current();
|
JanetBuildConfig host = janet_config_current();
|
||||||
if (host.major != modconf.major ||
|
if (host.major != modconf.major ||
|
||||||
host.minor < modconf.minor ||
|
host.minor != modconf.minor ||
|
||||||
host.bits != modconf.bits) {
|
host.bits != modconf.bits) {
|
||||||
char errbuf[128];
|
char errbuf[128];
|
||||||
snprintf(errbuf, sizeof(errbuf), "config mismatch - host %d.%.d.%d(%.4x) vs. module %d.%d.%d(%.4x)",
|
snprintf(errbuf, sizeof(errbuf), "config mismatch - host %d.%.d.%d(%.4x) vs. module %d.%d.%d(%.4x)",
|
||||||
|
Reference in New Issue
Block a user