From 624793eac882fcd4daf7055cf1aef4058e2dd4f7 Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Sun, 3 Jul 2022 19:54:58 +0200 Subject: Added support for building with Clang on OpenBSD. (#10028) --- scripts/toolchain.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 4a3eac02546..c8b90f3d738 100644 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -30,6 +30,7 @@ newoption { { "netbsd", "NetBSD" }, { "netbsd-clang", "NetBSD (clang compiler)"}, { "openbsd", "OpenBSD" }, + { "openbsd-clang", "OpenBSD (clang compiler)"}, { "osx", "OSX (GCC compiler)" }, { "osx-clang", "OSX (Clang compiler)" }, { "solaris", "Solaris" }, @@ -136,6 +137,10 @@ function toolchain(_buildDir, _subDir) location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-openbsd") end + if "openbsd-clang" == _OPTIONS["gcc"] then + location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-openbsd-clang") + end + if "linux-gcc" == _OPTIONS["gcc"] then -- Force gcc-4.2 on ubuntu-intrepid if _OPTIONS["distro"]=="ubuntu-intrepid" then -- cgit v1.2.3