DDawn LUCI CQAllow c2y-extensions when using CMake
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[cmake] Add a CMake toolchain file for "hermetic" Xcode builds. Bug: 417604769 Change-Id: If50832ec1ab727046aa55437006793ed4497c05a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/243695 Reviewed-by: Brian Sheedy <bsheedy@google.com> Commit-Queue: Brian Sheedy <bsheedy@google.com> Auto-Submit: Kai Ninomiya <kainino@chromium.org> | 1 年前 | |
[cmake] Make DAWN_BUILD_MONOLITHIC_LIB control STATIC vs. SHARED. Due to how the bundling process works, the monolithic library will only be monolithic if BUILD_SHARED_LIBS=OFF, otherwise we don't bundle objects from other SHARED libraries. Make the flag a tri-state: OFF/STATIC/SHARED and make it control the type of bundled library that is produced. Bug: Change-Id: I9b507d5965c6c088b1c2b3d438690fca6194e2e7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/254234 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> | 11 个月前 | |
Reland: Switch to C++20 Bump the C++ standard version to C++20 in all the build files. Put a designated initializer in a core Tint transform that is used on all platforms as a smoke test. Bug: 343500108 Change-Id: I7e1439776c04448769b0af6ae55cb6b362806b9c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/237834 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: James Price <jrprice@google.com> | 1 年前 | |
[cmake] Disable vptr sanitizer on old Clang The vptr sanitizer is enabled by -fsanitize=undefined only on older versions of Clang. We want to enable it (GN enables it along with is_ubsan), but tint_unittests fails with the version of Clang on our Linux CMake bots (19.0.0) which seems to be a buggy old version, as the error it produces seems to be incorrect (see bug). tint_unittests passes locally on my machine with Clang 19.1.7, so gate the vptr sanitizer on that version. Verified locally that the check controls the flag as expected. Whenever the bots' Clang gets upgraded, the sanitizer will turn back on automatically. Or, using a hermetic toolchain (like HermeticXcode.cmake but for Linux) would also fix it, but it's difficult to set up. Additionally: - Fix one more missing RTTI flag control. - Document why we have the float-divide-by-zero sanitizer, since GN doesn't. Fixed: 452389542 Bug: b:434977307 Cq-Include-Trybots: luci.dawn.try:cmake-linux-clang-dbg-x64-ubsan,cmake-linux-clang-rel-x64-ubsan Change-Id: Ifcdbe04a3588db3543ac269d53471ce561551b20 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/267317 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Auto-Submit: Kai Ninomiya <kainino@chromium.org> | 8 个月前 | |
[dawn][metal] Use kIOMainPortDefault We can remove the work around for kIOMainPortDefault now that minimum supported version includes macOS 12.0. Bug: chromium:1400252 Change-Id: Ic0b961e0909668a6ee05f65e311b7da226bb0a6d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/244774 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Fr <beaufort.francois@gmail.com> | 11 个月前 | |
Allow c2y-extensions when using CMake Applies https://dawn-review.googlesource.com/c/dawn/+/275695 when building with CMake. Bug: 452840620 Change-Id: If6f1133a658f3e2eebba9aacbf3a7752fa56f7d1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/276054 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Auto-Submit: Brian Sheedy <bsheedy@google.com> Commit-Queue: Brian Sheedy <bsheedy@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> | 7 个月前 | |
Refine the bundling step for webgpu_dawn - Build webgpu_dawn only when DAWN_BUILD_MONOLITHIC_LIBRARY is enabled - Turns off DAWN_BUILD_MONOLITHIC_LIBRARY because tools/android already builds a different bundle. - Link dawn_native with "-framework Foundation". This is needed for iOS. - Export symbols from dawn_native and dawn/webgpu.h when building monolithic shared library. - Remove install rules for unexported static libraries. - Provide a single webgpu_dawn library, C/C++ headers and cmake config file for consumers to use wgpu methods. - The exported symbols also permit instantiation of public classes from dawn::native namespaces. Change-Id: Ie8575d49366f3c333b860ce2617960067edfc404 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/195996 Commit-Queue: Jaswant Panchumarti <jaswant.panchumarti@kitware.com> Reviewed-by: dan sinclair <dsinclair@chromium.org> | 1 年前 | |
Initialize CMAKE_BUILD_TYPE in a cmake module - adds new DawnInitializeBuildType.cmake module which sets CMAKE_BUILD_TYPE to Debug if none was specified. Change-Id: I46e6764e9d72539e7c29f14490f1bd78e72fa634 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/194909 Commit-Queue: Jaswant Panchumarti <jaswant.panchumarti@kitware.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> | 2 年前 | |
Fix CMake StaticLibrary PDBs Using the DAWN_BUILD_MONOLITHIC_LIBRARY=STATIC CMake define flag generates an error: "TARGET_PDB_FILE is allowed only for targets with linker created artifacts." The issue is that the condition in dawn_install_target includes STATIC_LIBRARY, but static libraries created from object files (like bundled libraries) don't generate PDB files because they're created by the archiver, not the linker. The fix is to exclude static libraries from the PDB file installation as they don't generate PDB files. Bug: 441317244 Change-Id: Ie6a30b9b6540da8bbe96176d58fdc662ff8e5f92 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/263035 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com> | 9 个月前 | |
Move set_if_not_defined into DawnSetIfNotDefined module in src/cmake - Introduces src/cmake which will house various CMake modules that can be included in root CMakeLists.txt Change-Id: I3baef3cf49528f601854a08e9fee90c3b7516d4f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/194900 Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Jaswant Panchumarti <jaswant.panchumarti@kitware.com> | 2 年前 |