Skip to content

Replace is not None checks for linker flags with booleans#989

Merged
cpcloud merged 2 commits intoNVIDIA:mainfrom
mmason-nvidia:mmason-nvidia/bugfix/linker-flags
Sep 19, 2025
Merged

Replace is not None checks for linker flags with booleans#989
cpcloud merged 2 commits intoNVIDIA:mainfrom
mmason-nvidia:mmason-nvidia/bugfix/linker-flags

Conversation

@mmason-nvidia
Copy link
Contributor

The existing code checks for requested linker flags using "is not None" instead of testing for True/False. This can result in unwanted flags being passed to the linker in some instances. This change replaces the "is not None" check with simple boolean checks where appropriate.

The earlier code would check for requested linker flags using "is not
None" instead of True/False. This can result in unwanted flags being
passed to the linker in some instances. This change replaces the "is
not None" check with simple boolean checks where appropriate.
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Sep 19, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@leofang leofang added bug Something isn't working P0 High priority - Must do! cuda.core Everything related to the cuda.core module labels Sep 19, 2025
@leofang leofang added this to the cuda.core beta 7 milestone Sep 19, 2025
@leofang
Copy link
Member

leofang commented Sep 19, 2025

/ok to test 6a31f6b

@leofang
Copy link
Member

leofang commented Sep 19, 2025

/ok to test 61a5fad

@github-actions

This comment has been minimized.

Copy link
Contributor

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

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

LGTM!

@cpcloud cpcloud merged commit a3f3706 into NVIDIA:main Sep 19, 2025
49 checks passed
@github-actions
Copy link

Doc Preview CI
Preview removed because the pull request was closed or merged.

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

Labels

bug Something isn't working cuda.core Everything related to the cuda.core module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants