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

[SL-ONLY] Bugfix/gn true to define true #144

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

lpbeliveau-silabs
Copy link
Contributor

Went back to if condition on gn args since :
In gn, args=true evaluates as a boolean, if if(arg) works
BUT
In preprocessor, defines += "ARG=${arg}" will yield : #define ARG true which is interpreted as a string, and doesn't work with the #if !ARG checks

…boolean in gn, define +=VAR=true will have the preprocessor define it as a string
@lpbeliveau-silabs lpbeliveau-silabs requested a review from a team as a code owner November 28, 2024 17:17
@lpbeliveau-silabs lpbeliveau-silabs merged commit a71fb43 into release_2.5-1.4 Nov 28, 2024
11 of 13 checks passed
@lpbeliveau-silabs lpbeliveau-silabs deleted the bugfix/gn_true_to_define_true branch November 28, 2024 19:39
@mkardous-silabs mkardous-silabs added the sl-only This TAG indicates that this commit is a silabs-specific commit that cannot be upstream to CSA. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changing-submodules-on-purpose sl-only This TAG indicates that this commit is a silabs-specific commit that cannot be upstream to CSA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants