Skip to content

Commit

Permalink
Remove "-fpermissive" compiler option from Linux CMake config
Browse files Browse the repository at this point in the history
Summary: "-fpermissive", when used with GCC, allow some nonconforming code to compile.  And Clang does not implement the option.  Disabling as Ocean builds without it.

Reviewed By: enpe

Differential Revision: D59415762

fbshipit-source-id: e2db5bc12fc471ec547c8e2933afb189d2825dec
  • Loading branch information
leapally authored and facebook-github-bot committed Jul 11, 2024
1 parent 461153d commit 689e3b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion build/cmake/ocean_utilities.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ function(get_ocean_compiler_flags ocean_compiler_flags)
list(APPEND local_compiler_flags "/D_UNICODE")
list(APPEND local_compiler_flags "/DUNICODE")
elseif (LINUX)
list(APPEND local_compiler_flags "-fpermissive")
if (OCEAN_TARGET_PROCESSOR_TYPE STREQUAL "x86_64")
list(APPEND local_compiler_flags "-msse4.1")
list(APPEND local_compiler_flags "-mavx2")
Expand Down

0 comments on commit 689e3b9

Please sign in to comment.