Skip to content

Commit

Permalink
SERVER-25214 Use C11 to compile C language files
Browse files Browse the repository at this point in the history
  • Loading branch information
acmorrow committed Jul 26, 2016
1 parent 7cd2040 commit 883870b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SConstruct
Expand Up @@ -1983,8 +1983,8 @@ def doConfigure(myenv):
elif get_option('cxx-std') == "14":
if not AddToCXXFLAGSIfSupported(myenv, '-std=c++14'):
myenv.ConfError('Compiler does not honor -std=c++14')
if not AddToCFLAGSIfSupported(myenv, '-std=c99'):
myenv.ConfError("C++11 mode selected for C++ files, but can't enable C99 for C files")
if not AddToCFLAGSIfSupported(myenv, '-std=c11'):
myenv.ConfError("C++11 mode selected for C++ files, but can't enable C11 for C files")

if using_system_version_of_cxx_libraries():
print( 'WARNING: System versions of C++ libraries must be compiled with C++11/14 support' )
Expand Down

0 comments on commit 883870b

Please sign in to comment.