Skip to content

Commit b0f9d06

Browse files
LeSnow-YeDawn LUCI CQ
authored andcommitted
NOMINMAX on WIN32 instead of just MSVC
Same as https://github.com/google/dawn/blob/0979968b84312b7c52521739ef93eb9812f0f3ed/CMakeLists.txt#L448-L450 This is an imported pull request from #54 GITHUB_PR_HEAD_SHA=4b88a2986ef993fa4c39e077407212ff6cfa5b37 ORIGINAL_AUTHOR=LeSnow Ye <lesnow.ye@gmail.com> GitOrigin-RevId: 72c9f20 Change-Id: Ic21438bc2d800d0584ee464044d2009b89499656 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/282055 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Shrek Shao <shrekshao@google.com>
1 parent 82d6772 commit b0f9d06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tint/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ function(tint_default_compile_options TARGET)
197197
)
198198
endif()
199199
endif()
200+
endif()
200201

202+
if (WIN32)
201203
target_compile_definitions(${TARGET} INTERFACE "NOMINMAX")
202204
endif()
203205

0 commit comments

Comments
 (0)