Skip to content

Commit

Permalink
Build with -O2.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpwoodbu committed Sep 21, 2014
1 parent 5cdae62 commit 663d929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ if [[ ${FAST} != "fast" ]]; then

if [[ "${NACL_GLIBC}" != "1" ]]; then
# Do things specific to newlib.
export CXXFLAGS="${CXXFLAGS} -I${INCLUDE_OVERRIDE} -DHAVE_FORKPTY -DHAVE_SYS_UIO_H"
export CXXFLAGS="${CXXFLAGS} -I${INCLUDE_OVERRIDE} -DHAVE_FORKPTY -DHAVE_SYS_UIO_H -O2"
fi
# Do configure step in a subshell as we need to fake it out a little.
(
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ OBJCOPY:=$(TC_PATH)/../$(OSNAME)_x86_newlib/bin/i686-nacl-objcopy
# Project Build flags
# TODO: Remove --pnacl-exceptions once exceptions are fully supported by PNaCl.
override CXXFLAGS+=-pthread $(WARNINGS) -I$(NACL_SDK_ROOT)/include -fno-builtin \
--pnacl-exceptions=sjlj
--pnacl-exceptions=sjlj -O2

COMPAT_INC:=-I${TC_PATH}/ARCH-nacl/usr/include/glibc-compat
NEWLIB_CXXFLAGS:=$(CXXFLAGS) -DUSE_NEWLIB $(COMPAT_INC)
Expand Down

0 comments on commit 663d929

Please sign in to comment.