mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-09-11 13:36:08 +03:00
[ fix ] loading of dylib on macOS Monterey (#2078)
This commit is contained in:
parent
1a8747541e
commit
44fc58013a
@ -17,5 +17,6 @@ else
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH="$DIR/idris2_app:$LD_LIBRARY_PATH"
|
||||
export DYLD_LIBRARY_PATH="$DIR/idris2_app:$DYLD_LIBRARY_PATH"
|
||||
|
||||
${SCHEME} --script "$DIR/idris2_app/idris2-boot.so" "$@"
|
||||
|
@ -12,5 +12,6 @@ else
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH="$DIR/idris2_app:$LD_LIBRARY_PATH"
|
||||
export DYLD_LIBRARY_PATH="$DIR/idris2_app:$DYLD_LIBRARY_PATH"
|
||||
|
||||
"$DIR/idris2_app/idris2-boot" "$@"
|
||||
|
7823
bootstrap/idris2_app/idris2.rkt
generated
7823
bootstrap/idris2_app/idris2.rkt
generated
File diff suppressed because one or more lines are too long
7828
bootstrap/idris2_app/idris2.ss
generated
7828
bootstrap/idris2_app/idris2.ss
generated
File diff suppressed because one or more lines are too long
@ -402,6 +402,7 @@ startChezPreamble = unlines
|
||||
startChez : String -> String -> String
|
||||
startChez appdir target = startChezPreamble ++ unlines
|
||||
[ "export LD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$LD_LIBRARY_PATH\""
|
||||
, "export DYLD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$DYLD_LIBRARY_PATH\""
|
||||
, "export IDRIS2_INC_SRC=\"$DIR/" ++ appdir ++ "\""
|
||||
, "\"$DIR/" ++ target ++ "\" \"$@\""
|
||||
]
|
||||
|
@ -59,6 +59,7 @@ schFooter = "(collect 4)\n(blodwen-run-finalisers)\n"
|
||||
startChez : String -> String -> String -> String
|
||||
startChez chez appDirSh targetSh = Chez.startChezPreamble ++ unlines
|
||||
[ "export LD_LIBRARY_PATH=\"$DIR/" ++ appDirSh ++ ":$LD_LIBRARY_PATH\""
|
||||
, "export DYLD_LIBRARY_PATH=\"$DIR/" ++ appDirSh ++ ":$DYLD_LIBRARY_PATH\""
|
||||
, "\"" ++ chez ++ "\" -q "
|
||||
++ "--libdirs \"$DIR/" ++ appDirSh ++ "\" "
|
||||
++ "--program \"$DIR/" ++ targetSh ++ "\" "
|
||||
|
@ -343,6 +343,7 @@ startRacket racket appdir target = unlines
|
||||
, "fi"
|
||||
, ""
|
||||
, "export LD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$LD_LIBRARY_PATH\""
|
||||
, "export DYLD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$DYLD_LIBRARY_PATH\""
|
||||
, racket ++ "\"$DIR/" ++ target ++ "\" \"$@\""
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user