From: Brendan Hansen Date: Fri, 16 Jun 2023 21:11:28 +0000 (-0500) Subject: changed: miscellaneous things X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=82ec1d7591e970cbca06d9f65dc06eb8837d789e;p=onyx.git changed: miscellaneous things --- diff --git a/core/runtime/platform/onyx/platform.onyx b/core/runtime/platform/onyx/platform.onyx index 5827d082..b413b391 100644 --- a/core/runtime/platform/onyx/platform.onyx +++ b/core/runtime/platform/onyx/platform.onyx @@ -13,6 +13,9 @@ use runtime { #load "./fs" #load "./env" +#load "core/onyx/cptr" +#load "core/onyx/cbindgen" +// #load "core/onyx/fault_handling" // Platform supports Supports_Files :: true diff --git a/core/std.onyx b/core/std.onyx index 29cb3847..ad9a0a49 100644 --- a/core/std.onyx +++ b/core/std.onyx @@ -123,10 +123,6 @@ use runtime #if runtime.runtime == .Onyx { #load "./runtime/platform/onyx/platform" - - #load "./onyx/cptr" - #load "./onyx/cbindgen" - #load "./onyx/fault_handling" } #if runtime.runtime == .Wasi { diff --git a/scripts/onyx-pkg.onyx b/scripts/onyx-pkg.onyx index 6d2c1e4b..a5ca52e6 100644 --- a/scripts/onyx-pkg.onyx +++ b/scripts/onyx-pkg.onyx @@ -636,6 +636,7 @@ install_package :: (pack: Package, downgrade_if_necessary := false) -> (bool, in if installed_version->is_newer(pack.version) && !downgrade_if_necessary { error_print("Refusing to downgrade '{}' from {} to {}.\n", pack.repo, installed_version, pack.version); + return false, ""; } // :PRETTY