From 9a903dd6fc8843e83b0cac3d8b3a3d135d433f24 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sun, 19 Nov 2023 11:59:46 -0600 Subject: [PATCH] fixed: package manager on MacOS --- scripts/onyx-pkg.onyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/onyx-pkg.onyx b/scripts/onyx-pkg.onyx index bbfc753d..0fbb05a9 100644 --- a/scripts/onyx-pkg.onyx +++ b/scripts/onyx-pkg.onyx @@ -600,6 +600,9 @@ run_new_command :: (args: [] cstr) { #if runtime.compiler_os == .Linux { native_library_suffix :: ".so" } + #if runtime.compiler_os == .MacOS { + native_library_suffix :: ".dylib" + } #if runtime.compiler_os == .Windows { native_library_suffix :: ".dll" } @@ -886,7 +889,7 @@ Package :: struct { version: SemVer; } -#if runtime.compiler_os == .Linux { +#if runtime.compiler_os == .Linux || runtime.compiler_os == .MacOS { git_path :: "git" } #if runtime.compiler_os == .Windows { -- 2.25.1