File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,14 @@ task libsdsDynamicLinux, "Generate bindings":
6262task libsdsDynamicMac, " Generate bindings" :
6363 let outLibNameAndExt = " libsds.dylib"
6464 let name = " libsds"
65+
66+ let arch = hostCPU
67+ let archFlags = (if arch == " arm64" : " --cpu:arm64 --passC:\" -arch arm64\" --passL:\" -arch arm64\" "
68+ else : " --cpu:amd64 --passC:\" -arch x86_64\" --passL:\" -arch x86_64\" " )
69+
6570 buildLibrary outLibNameAndExt,
6671 name, " library/" ,
67- """ -d:chronicles_line_numbers --warning:Deprecated:off --warning:UnusedImport:on -d:chronicles_log_level=TRACE "" " ,
72+ archFlags & " -d:chronicles_line_numbers --warning:Deprecated:off --warning:UnusedImport:on -d:chronicles_log_level=TRACE" ,
6873 " dynamic"
6974
7075task libsdsStaticWindows, " Generate bindings" :
You can’t perform that action at this time.
0 commit comments