chore: remove install_name_tool and add m1 support
This commit is contained in:
parent
e29ba9c9fa
commit
33bef9b2f8
|
@ -0,0 +1,7 @@
|
|||
if defined(macosx):
|
||||
switch("passL", "-rpath " & getEnv("STATUSGO_LIBDIR"))
|
||||
if hostCPU == "arm64": # Crosscompiling to amd64 since arm64 is not supported
|
||||
switch("cpu", "amd64")
|
||||
switch("os", "MacOSX")
|
||||
switch("passL", "-arch x86_64")
|
||||
switch("passC", "-arch x86_64")
|
|
@ -43,9 +43,6 @@ proc buildAndRun(name: string,
|
|||
" --out:" & outDir & name &
|
||||
" " &
|
||||
srcDir & name & ".nim"
|
||||
if defined(macosx):
|
||||
exec "install_name_tool -add_rpath " & getEnv("STATUSGO_LIBDIR") & " " & outDir & name
|
||||
exec "install_name_tool -change " & "libstatus." & getEnv("LIBSTATUS_EXT") & " @rpath/libstatus." & getEnv("LIBSTATUS_EXT") & " " & outDir & name
|
||||
if getEnv("RUN_AFTER_BUILD").strip != "false":
|
||||
exec outDir & name
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit cee18efd710756c662c19ea9b167a47112847388
|
||||
Subproject commit 607507d20ae9e76e05bae7ec176dd41aca86e732
|
Loading…
Reference in New Issue