Skip to content

Commit

Permalink
Update C++ flag swaps for latest godot and add editor check for exten…
Browse files Browse the repository at this point in the history
…sion version
  • Loading branch information
HKunogi authored and ardazishvili committed Sep 29, 2024
1 parent 68337f8 commit 1b8c1e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ addon_path = Path(extension_path).parent
project_name = Path(extension_path).stem

debug_or_release = "release" if env["target"] == "template_release" else "debug"

if env["target"] == "editor":
env_sota.Append(CPPDEFINES=["SOTA_ENGINE"])

if env["platform"] == "macos":
library = env.SharedLibrary(
"{0}/bin/lib{1}.{2}.{3}.framework/{1}.{2}.{3}".format(
Expand Down
2 changes: 1 addition & 1 deletion SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env_sota = env_modules.Clone()

if env.msvc:
CXXFLAGS=['/std:c++20']
env_sota['CCFLAGS'].remove('/std:c++17')
env_sota['CXXFLAGS'].remove('/std:c++17')
env_sota.Append(CPPDEFINES=["MSVC"])
else:
CXXFLAGS=['-std=c++20']
Expand Down

0 comments on commit 1b8c1e1

Please # to comment.