Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Added O2 flag to default compilation path
Browse files Browse the repository at this point in the history
Summary: Closes #1000

Differential Revision: D5539652

Pulled By: bwasti

fbshipit-source-id: 8ac9c28d7f61a02dce4705df8ce704f00878ae44
  • Loading branch information
bwasti authored and facebook-github-bot committed Aug 1, 2017
1 parent 74366fc commit 50c9426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "binaries")
# ---[ Build flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")
else()
foreach(flag_var
Expand Down

0 comments on commit 50c9426

Please sign in to comment.