fixed: package manager on MacOS
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 19 Nov 2023 17:59:46 +0000 (11:59 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 19 Nov 2023 17:59:46 +0000 (11:59 -0600)
scripts/onyx-pkg.onyx

index bbfc753de7def759ffd64177c0a99545c6cb872a..0fbb05a940262a18cdd1db46f62c71afebf591d6 100644 (file)
@@ -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 {