Skip to content

Commit 3252917

Browse files
committed
Revert "For Intel Mac OS target version 10.14"
This reverts commit 4cd2f81.
1 parent 4cd2f81 commit 3252917

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.sbt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ jniGccFlags := (
8282
jniGccFlags.value.filterNot(_ == "-fPIC") ++
8383
Seq("-D_JNI_IMPLEMENTATION_", "-Wl,--kill-at",
8484
"-static-libgcc", "-Wl,--version-script=" + PWD + "/libzstd-jni.so.map")
85-
else if (System.getProperty("os.name").toLowerCase startsWith "mac") {
86-
// For intel, target the latest version that supported 32bit binaries
87-
val target = if (System.getProperty("os.arch") == "x86_64") Seq("-mmacosx-version-min=10.14") else Seq()
85+
else if (System.getProperty("os.name").toLowerCase startsWith "mac")
8886
// MacOS uses clang that does not support the "-static-libgcc" and version scripts,
8987
// but visibility can be modified by `-exported_symbols_list`
90-
jniGccFlags.value ++ Seq("-exported_symbols_list", PWD + "/libzstd-jni.so.exported") ++ target
91-
} else
88+
jniGccFlags.value ++ Seq("-exported_symbols_list", PWD + "/libzstd-jni.so.exported")
89+
else
9290
// the default is compilation with GCC
9391
jniGccFlags.value ++ Seq(
9492
"-static-libgcc", "-Wl,--version-script=" + PWD + "/libzstd-jni.so.map")

0 commit comments

Comments
 (0)