From 233daa018de3ee0cbae1adefab90dbe47d612d47 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 21 Nov 2020 23:40:34 +0300 Subject: [PATCH] [Build] Enable exceptions and Clang STL on Android --- premake5.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 7b8083a7e..a9095c591 100644 --- a/premake5.lua +++ b/premake5.lua @@ -29,6 +29,7 @@ defines({ }) cppdialect("C++17") +exceptionhandling("On") symbols("On") -- TODO(DrChat): Find a way to disable this on other architectures. @@ -146,6 +147,9 @@ filter({"platforms:Linux", "language:C++", "toolset:clang", "files:*.cc or *.cpp "-stdlib=libstdc++", }) +filter("platforms:Android") + system("android") + filter("platforms:Windows") system("windows") toolset("msc") @@ -198,8 +202,9 @@ solution("xenia") uuid("931ef4b0-6170-4f7a-aaf2-0fece7632747") startproject("xenia-app") if os.istarget("android") then - architecture("ARM64") + -- Not setting architecture as that's handled by ndk-build itself. platforms({"Android"}) + ndkstl("c++_static") else architecture("x86_64") if os.istarget("linux") then