diff options
| author | 2015-03-26 14:01:14 +0100 | |
|---|---|---|
| committer | 2015-03-26 14:01:14 +0100 | |
| commit | 5310d041d5e5845384ad6ffd4b8afd5deaba1585 (patch) | |
| tree | 9f7f16346769eb35d1c7db616ee89d9fc48b6f1a /scripts/toolchain.lua | |
| parent | 6c2c891317e6727de893c6e457a4f1db75123cca (diff) | |
added distro support for linux (nw)
Diffstat (limited to 'scripts/toolchain.lua')
| -rw-r--r-- | scripts/toolchain.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index fa82f63d8e8..fe400c8325b 100644 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -148,6 +148,28 @@ function toolchain(_buildDir) end if "linux-gcc" == _OPTIONS["gcc"] then + -- Force gcc-4.2 on ubuntu-intrepid + if _OPTIONS["distro"]=="ubuntu-intrepid" then + premake.gcc.cc = "@gcc -V 4.2" + premake.gcc.cxx = "@g++-4.2" + end + if _OPTIONS["distro"]=="gcc44-generic" then + premake.gcc.cc = "@gcc-4.4" + premake.gcc.cxx = "@g++-4.4" + end + if _OPTIONS["distro"]=="gcc45-generic" then + premake.gcc.cc = "@gcc-4.5" + premake.gcc.cxx = "@g++-4.5" + end + if _OPTIONS["distro"]=="gcc46-generic" then + premake.gcc.cc = "@gcc-4.6" + premake.gcc.cxx = "@g++-4.6" + end + if _OPTIONS["distro"]=="gcc47-generic" then + premake.gcc.cc = "@gcc-4.7" + premake.gcc.cxx = "@g++-4.7" + end + premake.gcc.ar = "ar" location (_buildDir .. "projects/" .. _ACTION .. "-linux") end |
