summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/stdmodules_deps_ordering/xmake.lua
blob: 09c3f6a94c3f84d6746e7823206f1d103ac9b08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
add_rules("mode.debug", "mode.release")
set_languages("c++latest")

-- test that a plain c++ file is ordered after all the bmis it reuses from its deps,
-- not only after the last one
--
-- @note foo must not import std, otherwise its bmi and the std bmi
-- would not be built by two distinct jobs of the foo target
--
-- @see https://github.com/xmake-io/xmake/issues/7690
target("foo")
    set_kind("static")
    add_files("src/foo.cpp")
    add_files("src/foo.mpp", {public = true})

target("main")
    set_kind("binary")
    add_deps("foo")
    add_files("src/main.cpp")