Skip to content

Commit 738f7ea

Browse files
committed
Enable -O2 globally
1 parent ba40b58 commit 738f7ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build-hnp/utils/Makefrag

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export LD := $(OHOS_SDK_HOME)/native/llvm/bin/ld.lld
1111
export AR := $(OHOS_SDK_HOME)/native/llvm/bin/llvm-ar
1212
export RANLIB := $(OHOS_SDK_HOME)/native/llvm/bin/llvm-ranlib
1313
export STRIP := $(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip
14-
export CFLAGS := -I$(shell pwd)/../sysroot/include -Wno-int-conversion
15-
export CXXFLAGS := -I$(shell pwd)/../sysroot/include
14+
export CFLAGS := -I$(shell pwd)/../sysroot/include -Wno-int-conversion -O2
15+
export CXXFLAGS := -I$(shell pwd)/../sysroot/include -O2
1616
export LDFLAGS := -L$(shell pwd)/../sysroot/lib

0 commit comments

Comments
 (0)