Skip to content

Commit 51cb2df

Browse files
committed
Merge pull request godotengine#91972 from bruvzg/more_flags
[SCons] Add options to override AR, AR and RC flags
2 parents 49c557c + 2818abe commit 51cb2df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SConstruct

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ opts.Add("ccflags", "Custom flags for both the C and C++ compilers")
287287
opts.Add("cxxflags", "Custom flags for the C++ compiler")
288288
opts.Add("cflags", "Custom flags for the C compiler")
289289
opts.Add("linkflags", "Custom flags for the linker")
290+
opts.Add("asflags", "Custom flags for the assembler")
291+
opts.Add("arflags", "Custom flags for the archive tool")
292+
opts.Add("rcflags", "Custom flags for Windows resource compiler")
290293

291294
# Update the environment to have all above options defined
292295
# in following code (especially platform and custom_modules).
@@ -533,6 +536,9 @@ env.Append(CCFLAGS=env.get("ccflags", "").split())
533536
env.Append(CXXFLAGS=env.get("cxxflags", "").split())
534537
env.Append(CFLAGS=env.get("cflags", "").split())
535538
env.Append(LINKFLAGS=env.get("linkflags", "").split())
539+
env.Append(ASFLAGS=env.get("asflags", "").split())
540+
env.Append(ARFLAGS=env.get("arflags", "").split())
541+
env.Append(RCFLAGS=env.get("rcflags", "").split())
536542

537543
# Feature build profile
538544
env.disabled_classes = []

0 commit comments

Comments
 (0)