Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCons] Add options to override AR, AR and RC flags #91972

Merged
merged 1 commit into from
May 15, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented May 15, 2024

Add extra options to override flags for the assembler, archive tool and resource compiler, similar to c**flags and linkflags.

SConstruct Outdated Show resolved Hide resolved
SConstruct Outdated
Comment on lines 282 to 284
opts.Add("CXX", "C++ compiler binary")
opts.Add("CC", "C compiler binary")
opts.Add("LINK", "Linker binary")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add options for AS, AR, RANLIB, RC, and maybe S_compiler?

Is there maybe a less hacky way to achieve this with builtin SCons features? CC @Repiteo

See related #91743.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, exposing the *flags as done in this PR should be fine to merge already, as this will work fine.

Making it possible to actually override the binary for each step reliably will require more work and an approach similar to #91743, so we can leave that to discuss there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add options for AS, AR, RANLIB, RC, and maybe S_compiler?

Why not? I have not tested #91743, but it seems fine to me (at least the idea).

SConstruct Outdated Show resolved Hide resolved
@akien-mga akien-mga changed the title [SCons] Add options to override AR, AR and RC flags, [SCons] Add options to override AR, AR and RC flags May 15, 2024
@akien-mga akien-mga modified the milestones: 4.x, 4.3 May 15, 2024
@akien-mga akien-mga merged commit 51cb2df into godotengine:master May 15, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants