From 5a8536cecddacb02b8a5bfb849b108f694087af0 Mon Sep 17 00:00:00 2001 From: Matt Eisan Date: Sat, 12 Jul 2014 22:07:45 -0400 Subject: [PATCH] Switch --platform flag to BuildProjects.lua, due to the --platform flag still producing 64-bit binaries. --- example/BuildProjects.bat | 6 +++--- example/BuildProjects.lua | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/example/BuildProjects.bat b/example/BuildProjects.bat index eb9d2b89..9de1a9c0 100644 --- a/example/BuildProjects.bat +++ b/example/BuildProjects.bat @@ -1,4 +1,4 @@ -premake4 --os=windows --platform=x32 --file=BuildProjects.lua vs2010 -premake4 --os=macosx --platform=universal32 --file=BuildProjects.lua gmake -premake4 --os=linux --platform=x32 --file=BuildProjects.lua gmake +premake4 --os=windows --file=BuildProjects.lua vs2010 +premake4 --os=macosx --file=BuildProjects.lua gmake +premake4 --os=linux --file=BuildProjects.lua gmake pause \ No newline at end of file diff --git a/example/BuildProjects.lua b/example/BuildProjects.lua index 7d099ab2..97e06e4b 100644 --- a/example/BuildProjects.lua +++ b/example/BuildProjects.lua @@ -5,6 +5,12 @@ solution "gmsv_example" flags { "Symbols", "NoEditAndContinue", "NoPCH", "StaticRuntime", "EnableSSE" } targetdir ( "lib/" .. os.get() .. "/" ) includedirs { "../include/" } + + if os.get() == "macosx" then + platform { "universal32" } + else + platform { "x32" } + end configurations {