Skip to content

Commit 06566ef

Browse files
authored
Remove test folder from dawn source tree (#27247)
### Description Remove the test folder from the dawn source tree to potential file scan operations by eliminating unnecessary files. The `test` folder contains 70k+ files, and we don't need them in ONNX Runtime build at all.
1 parent b7c183a commit 06566ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/external/onnxruntime_external_deps.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,11 @@ if (onnxruntime_USE_WEBGPU)
764764
# - (private) Fix compatibility issues with Safari. Contains the following changes:
765765
# - Polyfill for `device.AdapterInfo` (returns `undefined` in Safari v26.0)
766766
#
767-
${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/dawn/safari_polyfill.patch)
767+
${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/dawn/safari_polyfill.patch &&
768+
769+
# Remove the test folder to speed up potential file scan operations (70k+ files not needed for build).
770+
# Using <SOURCE_DIR> token ensures the correct absolute path regardless of working directory.
771+
${CMAKE_COMMAND} -E rm -rf <SOURCE_DIR>/test)
768772

769773
onnxruntime_fetchcontent_declare(
770774
dawn

0 commit comments

Comments
 (0)