Skip to content

Commit d3e0b1a

Browse files
committed
Add other as platform_str
1 parent de4dde0 commit d3e0b1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/testing_utils.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,12 @@ std::string get_platform_str() {
146146
* versions. For now, there are these two platforms with tolerance
147147
* files and we use the former with Clang on Mac and the later
148148
* otherwise. */
149-
#if defined(__clang__) && defined(__APPLE__)
149+
#if defined(__clang__) && defined(__APPLE__) && defined(__arch64__)
150150
return "clang-darwin-aarch64";
151-
#else
151+
#elif defined(__GNUG__) && !defined(__clang__) && defined(__linux__) && defined(__x86_64__)
152152
return "gcc-linux-x86_64";
153+
#else
154+
return "other";
153155
#endif
154156
}
155157

0 commit comments

Comments
 (0)