mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 09:55:26 +00:00
Fix linker error with iOS build
The IsMacOSVersionAtLeast() function is only defined on macOS, but was being used on all Apple platforms. Change-Id: Ie5e37fb8e408f424e55795327cca7f2a345bfdfa Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/61120 Commit-Queue: James Price <jrprice@google.com> Commit-Queue: Austin Eng <enga@chromium.org> Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
2086c655e5
commit
565863e954
@@ -24,7 +24,7 @@ std::string GetEnvironmentVar(const char* variableName);
|
||||
bool SetEnvironmentVar(const char* variableName, const char* value);
|
||||
std::string GetExecutableDirectory();
|
||||
|
||||
#ifdef DAWN_PLATFORM_APPLE
|
||||
#ifdef DAWN_PLATFORM_MACOS
|
||||
void GetMacOSVersion(int32_t* majorVersion, int32_t* minorVersion = nullptr);
|
||||
bool IsMacOSVersionAtLeast(uint32_t majorVersion, uint32_t minorVersion = 0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user