Add GCC optimization flag when compile native transport
Motivation: We not set any optimization flag when compile native transport Modification: Add -O3 to CFLAGS to have GCC do optimizations Result: Ship optimized native code
This commit is contained in:
parent
80b31bf9c0
commit
3b9af38276
@ -186,7 +186,7 @@
|
|||||||
<value>${linux.sendmmsg.support}${glibc.sendmmsg.support}</value>
|
<value>${linux.sendmmsg.support}${glibc.sendmmsg.support}</value>
|
||||||
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
||||||
<regex>.*IO_NETTY_SENDMSSG_NOT_FOUND.*</regex>
|
<regex>.*IO_NETTY_SENDMSSG_NOT_FOUND.*</regex>
|
||||||
<replacement>CFLAGS="-DIO_NETTY_SENDMMSG_NOT_FOUND"</replacement>
|
<replacement>CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND</replacement>
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
<failIfNoMatch>false</failIfNoMatch>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
@ -202,7 +202,7 @@
|
|||||||
<value>${jni.compiler.args}</value>
|
<value>${jni.compiler.args}</value>
|
||||||
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
||||||
<regex>^((?!CFLAGS=).)*$</regex>
|
<regex>^((?!CFLAGS=).)*$</regex>
|
||||||
<replacement>CFLAGS=""</replacement>
|
<replacement>CFLAGS=-O3</replacement>
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
<failIfNoMatch>false</failIfNoMatch>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
Loading…
Reference in New Issue
Block a user