summaryrefslogtreecommitdiff
path: root/emulators/mame/files/patch-scripts_toolchain.lua
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2019-04-30 16:14:04 +0000
committerKurt Jaeger <pi@FreeBSD.org>2019-04-30 16:14:04 +0000
commit1f583eca09ff5d7b5e81497733256d873f548cad (patch)
tree95e1f5c88348bfc1e29f5cdcdae44e798935396d /emulators/mame/files/patch-scripts_toolchain.lua
parentdevel/py-fs2: create port (diff)
emulators/mame: revert r500456 and reapply with fixes
PR: 236621 Reported by: Remko C. <sirdice@gmail.com> Pointy hat to: pi
Notes
Notes: svn path=/head/; revision=500501
Diffstat (limited to 'emulators/mame/files/patch-scripts_toolchain.lua')
-rw-r--r--emulators/mame/files/patch-scripts_toolchain.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/emulators/mame/files/patch-scripts_toolchain.lua b/emulators/mame/files/patch-scripts_toolchain.lua
new file mode 100644
index 000000000000..6324872c164d
--- /dev/null
+++ b/emulators/mame/files/patch-scripts_toolchain.lua
@@ -0,0 +1,21 @@
+--- scripts/toolchain.lua.orig 2018-02-27 15:59:06 UTC
++++ scripts/toolchain.lua
+@@ -23,6 +23,7 @@ newoption {
+ { "android-x64", "Android - x64" },
+ { "asmjs", "Emscripten/asm.js" },
+ { "freebsd", "FreeBSD" },
++ { "freebsd-clang", "FreeBSD (Clang)" },
+ { "linux-gcc", "Linux (GCC compiler)" },
+ { "linux-clang", "Linux (Clang compiler)" },
+ { "ios-arm", "iOS - ARM" },
+@@ -168,6 +169,10 @@ function toolchain(_buildDir, _subDir)
+ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd")
+ end
+
++ if "freebsd-clang" == _OPTIONS["gcc"] then
++ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd-clang")
++ end
++
+ if "netbsd" == _OPTIONS["gcc"] then
+ location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd")
+ end