[tint] Emit placeholder symbols for all toolchains

These were emitted for MSVC to force a .lib file to be produced for header-only targets.

Do the same for non-MSVC to silence macOS ranlib warnings.

Change-Id: I87769d95a5f26552d0d3d5757069ffa0d166f5ec
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/147280
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
diff --git a/src/tint/utils/math/math.cc b/src/tint/utils/math/math.cc
index 75b5c30..96fe095 100644
--- a/src/tint/utils/math/math.cc
+++ b/src/tint/utils/math/math.cc
@@ -14,9 +14,9 @@
 
 #include "src/tint/utils/math/math.h"
 
-#if defined(_MSC_VER) && !defined(__clang__)
-
-// A placeholder symbol used to make MSVC emit a .lib for this lib target.
-int tint_utils_math_symbol = 1;
-
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wmissing-variable-declarations"
 #endif
+
+// A placeholder symbol used to emit a symbol for this lib target.
+int tint_utils_math_symbol = 1;