From 3fe3471532db22eeb0d75c2b0ab56e6d2fc3eea8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 31 Aug 2017 15:17:42 +0100 Subject: improve Prefer32bit configuration option --- Prebuild/src/Core/Nodes/OptionsNode.cs | 18 ++++++++++++++++++ Prebuild/src/Core/Targets/VSGenericTarget.cs | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'Prebuild/src/Core') diff --git a/Prebuild/src/Core/Nodes/OptionsNode.cs b/Prebuild/src/Core/Nodes/OptionsNode.cs index 577de71..490fd6f 100644 --- a/Prebuild/src/Core/Nodes/OptionsNode.cs +++ b/Prebuild/src/Core/Nodes/OptionsNode.cs @@ -277,6 +277,24 @@ namespace Prebuild.Core.Nodes m_SuppressWarnings = value; } } + + [OptionNode("Prefer32Bit")] + private bool m_Prefer32Bit; + + /// + /// + /// + public bool Prefer32Bit + { + get + { + return m_Prefer32Bit; + } + set + { + m_Prefer32Bit = value; + } + } [OptionNode("OutputPath")] private string m_OutputPath = "bin/"; diff --git a/Prebuild/src/Core/Targets/VSGenericTarget.cs b/Prebuild/src/Core/Targets/VSGenericTarget.cs index 424e4d1..c12120f 100644 --- a/Prebuild/src/Core/Targets/VSGenericTarget.cs +++ b/Prebuild/src/Core/Targets/VSGenericTarget.cs @@ -254,7 +254,7 @@ namespace Prebuild.Core.Targets ps.WriteLine(" {0}", conf.Options["NoStdLib"]); ps.WriteLine(" {0}", conf.Options["SuppressWarnings"]); ps.WriteLine(" {0}", conf.Platform); - ps.WriteLine(" false"); + ps.WriteLine(" {0}",conf.Options["Prefer32Bit"]); ps.WriteLine(" "); } -- cgit v1.1