Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit d06b6fc

Browse files
committed
macOS: default to resease flags in native build
Signed-off-by: Alexander Bezzubov <[email protected]>
1 parent 2b9b82c commit d06b6fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def compileUnix(sourceFiles: String) = {
166166
}
167167

168168
val osName = System.getProperty("os.name").toLowerCase()
169-
if (osName.contains("mac os x")) { // TODO(bzz): change back to '-fPIC -O2' for release
170-
val cmd:String = "g++ -shared -Wall -g -std=c++11 " +
169+
if (osName.contains("mac os x")) {
170+
val cmd:String = "g++ -shared -Wall -fPIC -O2 -std=c++11 " +
171171
"-I/usr/include " +
172172
"-I" + javaHome + "/include/ " +
173173
"-I" + javaHome + "/include/darwin " +

0 commit comments

Comments
 (0)