Compile with Ofast and disable _FORTIFY_SOURCE
This commit is contained in:
parent
2958fc53d7
commit
6b1656f337
@ -85,11 +85,14 @@ model {
|
|||||||
|
|
||||||
if (os == "osx") {
|
if (os == "osx") {
|
||||||
cppCompiler.args '-I', "$javaHome/include/darwin"
|
cppCompiler.args '-I', "$javaHome/include/darwin"
|
||||||
|
cppCompiler.args "-Ofast"
|
||||||
|
cppCompiler.args "-U_FORTIFY_SOURCE"
|
||||||
} else if (os == "linux") {
|
} else if (os == "linux") {
|
||||||
cppCompiler.args "-fvisibility=hidden"
|
cppCompiler.args "-fvisibility=hidden"
|
||||||
cppCompiler.args '-I', "$javaHome/include/linux"
|
cppCompiler.args '-I', "$javaHome/include/linux"
|
||||||
cppCompiler.args "-fPIC"
|
cppCompiler.args "-fPIC"
|
||||||
|
cppCompiler.args "-Ofast"
|
||||||
|
cppCompiler.args "-U_FORTIFY_SOURCE"
|
||||||
cppCompiler.args "-fpermissive"
|
cppCompiler.args "-fpermissive"
|
||||||
linker.args "-fvisibility=hidden"
|
linker.args "-fvisibility=hidden"
|
||||||
} else if (os == "windows") {
|
} else if (os == "windows") {
|
||||||
@ -101,6 +104,8 @@ model {
|
|||||||
}
|
}
|
||||||
cppCompiler.args "-fpermissive"
|
cppCompiler.args "-fpermissive"
|
||||||
cppCompiler.args "-static"
|
cppCompiler.args "-static"
|
||||||
|
cppCompiler.args "-Ofast"
|
||||||
|
cppCompiler.args "-U_FORTIFY_SOURCE"
|
||||||
linker.args "-static"
|
linker.args "-static"
|
||||||
linker.args "-Wl,--exclude-all-symbols"
|
linker.args "-Wl,--exclude-all-symbols"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user