-
我使用了set_policy("check.auto_ignore_flags", false) 如何去掉所有的flags checking呢? |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 19 replies
-
剩下的这些是跨编译器必须的,内部的 flags 处理。。不能去。你能去的只能是 用户自己 add_cxflags 设置的 flags 检测。。 |
Beta Was this translation helpful? Give feedback.
-
就比如支持 c++modules 特性。不同编译器 gcc clang msvc,以及不同版本,需要的 flags 都是不同的,内部需要自动检测后,是适配各种编译器支持的力度。。 其他特性也是。。没法去掉 |
Beta Was this translation helpful? Give feedback.
-
非常感谢,我有一个sh脚本在根目录下,如下,编译每一个子目录下的项目,但每执行一次xmake都要有这样的检查,有没有办法做到只检查一次呢? xmake -j$handleCpuNum $verbose --file=./Tools/LogManager/LogManager.lua |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
我是想搞一个xmake.lua includes所有的子工程lua, xmake build targetname来编译的话,这个xmake build target name是写在哪里呢?我之前是写在sh里,如果不用sh的话,该怎么写呢? |
Beta Was this translation helpful? Give feedback.
-
xmake.lua里includes进来后 |
Beta Was this translation helpful? Give feedback.
-
再请教一个问题哈,我在根目录下有一个xmake.lua里面includes各个子目录的sub.lua,但是子目录里有before_link os.cp(../" 类似的拷贝操作,然后运行xmake build --file=xmake.lua后,会导致目录找不到的问题,这个该怎么处理呢?xmake.lua里全部都是includes ("HXAPI/sub.lua")类似的包含语句,好像也没法改变当前目录 这是我的xmake.lua |
Beta Was this translation helpful? Give feedback.
-
你为啥非要指定
干嘛要改变目录。。脚本域自己 |
Beta Was this translation helpful? Give feedback.
-
kb@devmachine:~/cpp1/trunk$ xmake 我直接xmake 后,出现这个错误。 kb@devmachine:~/cpp3/trunk$ xmake build -a --verbose |
Beta Was this translation helpful? Give feedback.
-
path.join(os.projectdir(), "xxx") 如果这么做,单独到子目录里编译子项目的话,子项目的路径又不对了。 根目录里统一编译和 单独到子目录里编译,都可以找到正确路径,这个该怎么处理呢? |
Beta Was this translation helpful? Give feedback.
-
我也对你没招了,各种瞎搞。。建议先多看看文档。。 os.projectdir(), os.targetdir() 都是绝对路径,能 join 到一起? ln 有 os.ln ,为啥要执行 os.run ln 。。里面路径全不对。。 |
Beta Was this translation helpful? Give feedback.
-
请教下,这里我用xmake build targetname单独编译一个target,奇怪为何找不到.o呢? |
Beta Was this translation helpful? Give feedback.
你怎么还没理解呢。。我记得文档里说的很详细的。。先自己仔细看看哈。。
你不管有几个子目录,几个子项目。反正就一个根目录。一个根 xmake.lua 里面 includes 把所有子目录的 lua 全部 include 进来。。
就只有一个大的单一工程,里面有多少 target 都无所谓。。自己 xmake build targetxxx 自己想编译哪些 target 就编译哪些。。所有命令都只在跟目录下执行。。也不要切目录。。懂了么。。。。反正就是搞成一个工程。。没那么多事