Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2191 closed enhancement (fixed)

[Premake] Add VS2012, EnableSSE2 and "--with-c++11"

Reported by: Jorma Rebane Owned by: Jorma Rebane
Priority: Must Have Milestone: Alpha 15
Component: Build & Packages Keywords: patch
Cc: historicbruno, philip, josh Patch:

Description

This patch adds three new features to the build system:

  • VS2012 project generation - premake4 now accepts "vs2012" and generates a correct solution file for VS2012.
  • EnableSSE2 - automatically enables SSE2 via premake flag "EnableSSE2"; This doesn't really change anything for gcc/icc, but is crucial to enable SSE2 code generation in VS projects. Using the default feature of premake which ignores EnableSSE2 on systems that don't support it.
  • "--with-c++11" - Special premake flag that passes -std=c++0x to gcc/icc. Simply pass --with-c++11 to enable C++11 features. For testing and possible migration to C++11 in the future.

I also added a new batch file that generates atlas build for VS2012. This is useful for developers who need to recompile AtlasUI.dll.

Attachments (2)

premake4_VS2012_support.patch (65.6 KB ) - added by Jorma Rebane 11 years ago.
Split patch, only VS2012 support for premake4
premake4_SSE2_C++11.patch (2.2 KB ) - added by Jorma Rebane 11 years ago.
Adds SSE2 to Windows build and optional C++11 build option

Download all attachments as: .zip

Change History (6)

by Jorma Rebane, 11 years ago

Split patch, only VS2012 support for premake4

comment:1 by Jorma Rebane, 11 years ago

Premake4 VS2012 support now part of changeset r13970

by Jorma Rebane, 11 years ago

Attachment: premake4_SSE2_C++11.patch added

Adds SSE2 to Windows build and optional C++11 build option

comment:2 by Jorma Rebane, 11 years ago

In 13971:

Adds EnableSSE2 for Visual Studio builds on windows.
Adds optional "--with-c++11" flag for GCC/ICC builds. For possible future C++11 migration.
refs #2191

comment:3 by Jorma Rebane, 11 years ago

Resolution: fixed
Status: newclosed

In 13972:

Fixed premake4 build incorrectly ignoring vs2010 action.
fixes #2191

comment:4 by Jorma Rebane, 11 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.