Skip to content

Commit

Permalink
Merge pull request #64 from eliopark-nsuslab/godot-4.x
Browse files Browse the repository at this point in the history
Fixed build errors on Windows.
  • Loading branch information
Lecrapouille authored Jul 29, 2024
2 parents 33e4166 + e84c290 commit ff2bf00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions addons/gdcef/gdcef/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ elif platform == 'windows':
env.Append(CCFLAGS=['-W3', '-GR'])
env.Append(CXXFLAGS='/std:c++17')
if compile_mode == 'debug':
env.Append(CPPDEFINES=['_DEBUG'])
env.Append(CCFLAGS=['-EHsc', '-MDd', '-ZI'])
env.Append(CPPDEFINES=['_DEBUG', '_ITERATOR_DEBUG_LEVEL=0'])
env.Append(CCFLAGS=['-EHsc', '-MDd', '-ZI', '-FS'])
env.Append(LINKFLAGS=['-DEBUG'])
else:
env.Append(CPPDEFINES=['NDEBUG'])
Expand Down Expand Up @@ -166,9 +166,13 @@ if platform == 'linux' or platform == 'osx':

# OpenMP
if env['cpu_parallelism']:
env.Append(CCFLAGS=['-fopenmp'])
env.Append(CXXFLAGS=['-fopenmp'])
env.Append(LINKFLAGS=['-fopenmp'])
if platform == 'windows':
env.Append(CCFLAGS=['-openmp'])
env.Append(CXXFLAGS=['-openmp'])
else:
env.Append(CCFLAGS=['-fopenmp'])
env.Append(CXXFLAGS=['-fopenmp'])
env.Append(LINKFLAGS=['-fopenmp'])

# User defines
env.Append(CXXFLAGS=['-DCEF_ARTIFACTS_FOLDER=' + env['cef_artifacts_folder']])
Expand Down
2 changes: 1 addition & 1 deletion addons/gdcef/gdcef/src/gdcef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ void GDCef::Impl::OnBeforeClose(CefRefPtr<CefBrowser> browser)
void GDCef::Impl::OnBeforeCommandLineProcessing(const CefString& ProcessType,
CefRefPtr<CefCommandLine> command_line)
{
CEF_REQUIRE_UI_THREAD();
//CEF_REQUIRE_UI_THREAD();
GDCEF_DEBUG();

if (command_line == nullptr)
Expand Down
2 changes: 1 addition & 1 deletion addons/gdcef/subprocess/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ elif platform == 'windows':
env.Append(CCFLAGS=['-W3', '-GR'])
env.Append(CXXFLAGS='/std:c++17')
if compile_mode == 'debug':
env.Append(CPPDEFINES=['_DEBUG'])
env.Append(CPPDEFINES=['_DEBUG', '_ITERATOR_DEBUG_LEVEL=0'])
env.Append(CCFLAGS=['-EHsc', '-MDd', '-ZI'])
env.Append(LINKFLAGS=['-DEBUG'])
else:
Expand Down

0 comments on commit ff2bf00

Please sign in to comment.