Browse Source

Merge pull request #66493 from akien-mga/scons-regex-duplicate-objs

Fix MSVC warning LNK4042 about dupe objects in regex
Rémi Verschelde 2 years ago
parent
commit
812409cf7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/regex/SCsub

+ 1 - 1
modules/regex/SCsub

@@ -58,10 +58,10 @@ if env["builtin_pcre2"]:
         env_pcre2["OBJSUFFIX"] = "_" + width + env_pcre2["OBJSUFFIX"]
         env_pcre2.Append(CPPDEFINES=[("PCRE2_CODE_UNIT_WIDTH", width)])
         env_pcre2.add_source_files(thirdparty_obj, thirdparty_sources)
-        env.modules_sources += thirdparty_obj
 
     pcre2_builtin("16")
     pcre2_builtin("32")
+    env.modules_sources += thirdparty_obj
 
 
 # Godot source files