]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Add /arch:IA32 option in VS2012 and VS2013
authorLiming Gao <liming.gao@intel.com>
Tue, 18 Aug 2015 02:52:32 +0000 (02:52 +0000)
committerlgao4 <lgao4@Edk2>
Tue, 18 Aug 2015 02:52:32 +0000 (02:52 +0000)
commit71028ba2c4c398d70475504e671d048d9003d90f
tree0d1d2a666962e175329c92f2071c3b86e72752c0
parenta3a0974822c02ab38ab7a7d21ab79f4b22d00291
BaseTools: Add /arch:IA32 option in VS2012 and VS2013

VS2012 and VS2013 turn on optimizations by default that generate the
use of CMOV instruction. This is a change from previous version VS2008.
This means when you build with VS2012 or VS2013, it will generate UD
exceptions on Quark.

To resolve it, add /arch:IA32 options to not use enhanced instructions.
https://msdn.microsoft.com/en-us/library/7t5yh4fd(v=vs.140).aspx

Update the default options of VS2012 & VS2013 tool chain IA32 arch in
BaseTools\Conf\tools_def.template to make sure the generated Quark
compatibility driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18230 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Conf/tools_def.template