Skip to content

Ensure bundle_libraries is called with uppercase link type#56

Closed
eliemichel wants to merge 1 commit into
google:mainfrom
eliemichel:patch-2
Closed

Ensure bundle_libraries is called with uppercase link type#56
eliemichel wants to merge 1 commit into
google:mainfrom
eliemichel:patch-2

Conversation

@eliemichel
Copy link
Copy Markdown
Contributor

In the root CMakeLists.txt, a call to TOUPPER suggests that the value of DAWN_BUILD_MONOLITHIC_LIBRARY might have any case. However, its value is used as is in the call to bundle_libraries, which in turn uses it in a call to add_library, which requires uppercase STATICor SHARED.

This ensures that the argument passed to bundle_libraries is uppercased. Another fix could be to place a call to TOUPPERdirectly within bundle_libraries's definition.

@github-actions
Copy link
Copy Markdown

👋 Thanks for your contribution! Your PR has been imported to Gerrit.
Please visit https://dawn-review.googlesource.com/c/dawn/+/285403 to see it and CC yourself on the change.
After iterating on feedback, please comment on the Gerrit review to notify reviewers.
All reviews are handled within Gerrit, any comments on the GitHub PR may be missed.
You can continue to upload commits to this PR, and they will be automatically imported
into Gerrit.

copybara-service Bot pushed a commit that referenced this pull request Jan 20, 2026
In the root CMakeLists.txt, a call to `TOUPPER` suggests that the value of `DAWN_BUILD_MONOLITHIC_LIBRARY` might have any case. However, its value is used as is in the call to `bundle_libraries`, which in turn uses it in a call to `add_library`, which requires uppercase `STATIC`or `SHARED`.

This ensures that the argument passed to `bundle_libraries` is uppercased. Another fix could be to place a call to `TOUPPER`directly within `bundle_libraries`'s definition.

This is an imported pull request from
#56

GITHUB_PR_HEAD_SHA=2ce3a5f3290dd763804d1f5c6170edf756943502
ORIGINAL_AUTHOR=Elie Michel <eliemichel@users.noreply.github.com>
GitOrigin-RevId: 69ce404
Change-Id: Ibfea2cdc67b45142c5d7916e4a2a48b74524d2cd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/285403
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
@github-actions
Copy link
Copy Markdown

🚀 PR was merged in 609ad4a!

@github-actions github-actions Bot closed this Jan 20, 2026
@eliemichel eliemichel deleted the patch-2 branch January 21, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant