From bee45bb79c2da5629dca2c57f9792a2a8fb88919 Mon Sep 17 00:00:00 2001 From: Danusch Merrikh-Yazdi Date: Tue, 17 Dec 2019 18:01:02 +0000 Subject: [PATCH] dawn: Fix GetExecutablePath for iOS. Change-Id: Ibde0793471606b9db783991aeb46e284225d5783 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14624 Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez Commit-Queue: Danusch Merrikh-Yazdi --- src/common/SystemUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/SystemUtils.cpp b/src/common/SystemUtils.cpp index 88fc7d7faa..73aa4ee640 100644 --- a/src/common/SystemUtils.cpp +++ b/src/common/SystemUtils.cpp @@ -21,7 +21,7 @@ # include # include # include -#elif defined(DAWN_PLATFORM_MACOS) +#elif defined(DAWN_PLATFORM_MACOS) || defined(DAWN_PLATFORM_IOS) # include # include #endif @@ -88,7 +88,7 @@ std::string GetExecutablePath() { path[result] = '\0'; return path.data(); } -#elif defined(DAWN_PLATFORM_MACOS) +#elif defined(DAWN_PLATFORM_MACOS) || defined(DAWN_PLATFORM_IOS) std::string GetExecutablePath() { uint32_t size = 0; _NSGetExecutablePath(nullptr, &size);