Replies: 2 comments 4 replies
-
都在 path 里了,直接 xmake 不就好了么,还需要做什么。。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
就是跑个默认的hello word。 $ cat xmake.lua
add_rules("mode.debug", "mode.release")
target("hello")
set_kind("binary")
add_files("src/*.cpp")
$ xmake build
checking for platform ... linux
checking for architecture ... x86_64
error: target(hello): toolchain not found!
$ which g++
/opt/rh/devtoolset-8/root/usr/bin/g++ |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
CentOS 7 有一套SCL Repo来匹配高版本的gcc
然后通过
scl enable devtoolset-8 bash
来激活gcc-8环境。xmake要如何读取此工具链?
Beta Was this translation helpful? Give feedback.
All reactions