Comments (3)
add_rules("mode.debug", "mode.release")
target("foo")
set_kind("static")
add_files("src/foo.cpp")
set_policy("build.across_targets_in_parallel", false)
target("test3")
set_kind("binary")
add_deps("foo")
add_files("src/main.cpp")
set_pcxxheader("src/test.h")
ruki-2:test3 ruki$ xmake
[ 12%]: cache compiling.release src/foo.cpp
[ 25%]: archiving.release libfoo.a
[ 50%]: cache compiling.release src/test.h
[ 62%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test3
[100%]: build ok, spent 0.912s
from xmake.
This behaviour is quite unclear - why does the policy set in the subproject change the build behaviour of the parent?
Wouldn't it be more logical to set that in the test3 project in your example?
from xmake.
Disable cross-target parallel compilation for target foo, so that other targets can be compiled in parallel only after all of foo's source files have been compiled.
from xmake.
Related Issues (20)
- 添加 target:gb2312 以满足中文兼容性 HOT 5
- 增加能够在 rule 中传递的用户级自定义变量的功能 HOT 5
- 创建 cmakelist 异常 HOT 5
- Support range based glob pattern HOT 5
- add_requireconfs 固定依赖版本后丢失依赖信息 HOT 21
- flex应该能正常单独使用 HOT 3
- package budil with android ndk use cmake_generator=Ninja failed on windows HOT 2
- in package config setting "-DANDROID_PLATFORM=XXX" is override by xmake ndk toolchain HOT 1
- 大型项目用 xmake 构建的最佳实践? HOT 10
- ubuntu下调用xmake f --menu报错error: field 'isdone' is not callable (a nil value) HOT 7
- Allow target:fileconfig() for headerfiles HOT 8
- new version xmake can not build static lib only containing modules HOT 7
- package:add_linkdirs() 未导出 HOT 11
- xmake中如何添加配置g++ -Wl,-rpath=. HOT 2
- Endianness/Byte-order detection on build machine HOT 2
- Metal project generated by xmake can not launch because of failed to load default library HOT 1
- xmake test 并发测试用例时输出进度乱序, 希望排序后输出 HOT 4
- Windows平台上,为编译工具链程序添加`.exe`后缀的行为与`zig cc`,`zig c++`工具链存在冲突 HOT 10
- Keep packages required with a branch up to date HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.