summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Yufei <[email protected]>2022-01-18 14:32:02 +0800
committerChen Yufei <[email protected]>2022-01-18 14:32:02 +0800
commit7d6096cd44414f636e09503e5085f03513c6c01f (patch)
treea729aacef725413aea9041f656b5b64038a8d92c
parent7bb8966df07702ecc5e582f6e371419363cc0e67 (diff)
toolchain: add gcc-4.8 and gcc-4.9
-rw-r--r--xmake/core/platform/platform.lua2
-rw-r--r--xmake/toolchains/gcc-4.8/xmake.lua3
-rw-r--r--xmake/toolchains/gcc-4.9/xmake.lua3
3 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index ea41777c6..cc46b8d41 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -524,7 +524,7 @@ function platform.toolchains()
if dirs then
for _, dir in ipairs(dirs) do
if os.isfile(path.join(dir, "xmake.lua")) then
- table.insert(toolchains, path.basename(dir))
+ table.insert(toolchains, path.filename(dir))
end
end
end
diff --git a/xmake/toolchains/gcc-4.8/xmake.lua b/xmake/toolchains/gcc-4.8/xmake.lua
new file mode 100644
index 000000000..6519646b1
--- /dev/null
+++ b/xmake/toolchains/gcc-4.8/xmake.lua
@@ -0,0 +1,3 @@
+includes(path.join(os.scriptdir(), "../gcc/xmake.lua"))
+
+toolchain_gcc("4.8")
diff --git a/xmake/toolchains/gcc-4.9/xmake.lua b/xmake/toolchains/gcc-4.9/xmake.lua
new file mode 100644
index 000000000..4b489fa5d
--- /dev/null
+++ b/xmake/toolchains/gcc-4.9/xmake.lua
@@ -0,0 +1,3 @@
+includes(path.join(os.scriptdir(), "../gcc/xmake.lua"))
+
+toolchain_gcc("4.9")