Skip to content

Commit

Permalink
[tests] Fix env variable for mac loader path
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Sep 11, 2024
1 parent aabf9bf commit b8a2558
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/runci/System.hx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ class System {
}

static public function addToLIBPATH(path:String):Void {
infoMsg('Prepending $path to LD_LIBRARY_PATH.');
infoMsg('Prepending $path to loader path.');
switch (systemName) {
case "Windows": // pass
case "Mac", "Linux":
case "Linux":
Sys.putEnv("LD_LIBRARY_PATH", path + ":" + Sys.getEnv("LD_LIBRARY_PATH"));
case "Mac":
Sys.putEnv("DYLD_LIBRARY_PATH", path + ":" + Sys.getEnv("DYLD_LIBRARY_PATH"));
}
}

Expand Down

0 comments on commit b8a2558

Please sign in to comment.