Unverified Commit 69a6fb09 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

enable -O3 optimization (#333)

* enable -O3 optimization

* add flags to support release/debug builds
parent 2466bacd
......@@ -88,7 +88,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "^(Apple)?Clang$")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g")
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
if ("${NGRAPH_WARNINGS_AS_ERRORS}" MATCHES "^ON$")
message(STATUS "Enabling warnings as errors")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment