mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Remove obsolete C++11 flag from C++ module examples (#5057)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
committed by
Hugo Locurcio
parent
c462dd16d9
commit
30ed5e8043
@@ -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:
|
||||
|
||||
|
||||
@@ -402,7 +402,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
|
||||
|
||||
Reference in New Issue
Block a user