Skip to content

Commit

Permalink
change toolset
Browse files Browse the repository at this point in the history
  • Loading branch information
van800 committed Mar 1, 2025
1 parent 71339c3 commit d414b75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,11 @@ def get_dependencies(file, env, exts, headers, sources, others):
proj_template = proj_template.replace("%%DEFAULT_ITEMS%%", "\n ".join(all_items))
proj_template = proj_template.replace("%%PROPERTIES%%", "\n ".join(properties))

toolset = "v143"
if not env.msvc:
toolset = "CLang"
proj_template = proj_template.replace("%%PlatformToolset%%", toolset)

if not env.msvc:
proplist = [str(j) for j in env["CPPPATH"]]
proplist += [str(j) for j in env.get("VSHINT_INCLUDES", [])]
Expand Down
2 changes: 1 addition & 1 deletion misc/msvs/vcxproj.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PropertyGroup Label="Configuration">
<ConfigurationType>Makefile</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<PlatformToolset>Clang</PlatformToolset>
<PlatformToolset>%%PlatformToolset%%</PlatformToolset>
<DefaultPlatformToolset>$(PlatformToolset)</DefaultPlatformToolset>
<OutDir>$(SolutionDir)\bin\$(GodotPlatform)\$(GodotConfiguration)\</OutDir>
<IntDir>obj\$(GodotPlatform)\$(GodotConfiguration)\</IntDir>
Expand Down

0 comments on commit d414b75

Please # to comment.