Skip to content

Commit

Permalink
Add -fcoroutines
Browse files Browse the repository at this point in the history
Reviewed By: malanka

Differential Revision: D62176041

fbshipit-source-id: 771cffbf7b4358c8dd5ee6055199c049b35eca1b
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Sep 4, 2024
1 parent a050647 commit 5ec65b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/util/fb-util.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ common fb-haskell
ghc-options: -O2

common fb-cpp
cxx-options: -std=c++17
cxx-options: -std=c++17 -fcoroutines
if arch(x86_64)
cxx-options: -march=haswell
if flag(opt)
Expand Down
2 changes: 1 addition & 1 deletion cpp-channel/thrift-cpp-channel.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ common fb-haskell
ghc-options: -O2

common fb-cpp
cxx-options: -std=c++17
cxx-options: -std=c++17 -fcoroutines
if arch(x86_64)
cxx-options: -march=haswell
if flag(opt)
Expand Down
5 changes: 4 additions & 1 deletion server/thrift-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ common fb-haskell
ghc-options: -O2

common fb-cpp
cxx-options: -std=c++17
cxx-options: -std=c++17 -fcoroutines
-- very important to use -fcoroutines here, because there are
-- #ifdefs in the fbthrift code (e.g. ThriftServer.h) that must
-- be consistent with the fbthrift build.
if arch(x86_64)
cxx-options: -march=haswell
if flag(opt)
Expand Down

0 comments on commit 5ec65b3

Please sign in to comment.