Skip to content

Commit

Permalink
Remove obsolete C++11 flag from C++ module examples (godotengine#5057)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Locurcio <[email protected]>
  • Loading branch information
adam-trhon and Calinou authored Jun 29, 2021
1 parent 4652ac2 commit 1c63513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions development/cpp/binding_to_external_libraries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,11 @@ Example `SCsub` with custom flags:
env_tts = env.Clone()
env_tts.add_source_files(env.modules_sources, "*.cpp")
env_tts.Append(CCFLAGS=['-O2']) # Flags for C and C++ code
env_tts.Append(CXXFLAGS=['-std=c++11']) # Flags for C++ code only
# Append CCFLAGS flags for both C and C++ code.
env_tts.Append(CCFLAGS=['-O2'])
# If you need to, you can:
# - Append CFLAGS for C code only.
# - Append CXXFLAGS for C++ code only.
The final module should look like this:

Expand Down
1 change: 0 additions & 1 deletion development/cpp/custom_modules_in_cpp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ using the `ARGUMENT` command:
module_env = env.Clone()
module_env.Append(CCFLAGS=['-O2'])
module_env.Append(CXXFLAGS=['-std=c++11'])
if ARGUMENTS.get('summator_shared', 'no') == 'yes':
# Shared lib compilation
Expand Down

0 comments on commit 1c63513

Please sign in to comment.