[cmake] Set DAWN_ENABLE_PIC explicitly to ON by default The CMake configure output reports: -- Dawn build PIC: OFF by default, even though all targets are compiled with -fPIC. Specifying -DDAWN_ENABLE_PIC=ON or -DDAWN_ENABLE_PIC=OFF has currently no effect on the build. This PR removes the unconditional set(CMAKE_POSITION_INDEPENDENT_CODE ON) and switches DAWN_ENABLE_PIC to ON by default. So this does not change the default behavior but allows the user to toggle DAWN_ENABLE_PIC. This is an imported pull request from https://github.com/google/dawn/pull/64 GITHUB_PR_HEAD_SHA=2158366c3cee7eab0feb69086592a53abf3db4c7 ORIGINAL_AUTHOR=Dominique Belhachemi <db@domibel.de> GitOrigin-RevId: cec3cc9be45b9f83aa048cd7b3fe3c16034754d3 Change-Id: I3f7db5e21d697c9866eac0e529d62d8705c08292 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/302535 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.