Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
#include <mbgl/render_test.hpp>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
return mbgl::runRenderTests(argc, argv, []() {});
|
||||
}
|
||||
#ifdef __APPLE
|
||||
#if defined(TARGET_IPHONE_SIMULATOR)
|
||||
#define IS_IOS
|
||||
#elif defined(TARGET_OS_IPHONE)
|
||||
#define IS_IOS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
#ifdef IS_IOS
|
||||
try {
|
||||
#endif
|
||||
return mbgl::runRenderTests(argc, argv, []() {});
|
||||
#ifdef IS_IOS
|
||||
} catch (std::exception const& e) {
|
||||
std::cerr << "Caught an exception while running tests\n" << e.what() << '\n';
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user