Giter VIP home page Giter VIP logo

Comments (3)

waruqi avatar waruqi commented on August 28, 2024
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.

richionizor avatar richionizor commented on August 28, 2024

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.

waruqi avatar waruqi commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.