diff options
| author | ruki <[email protected]> | 2020-04-03 23:18:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-03 14:20:20 +0800 |
| commit | b49cfd13fc19b42ecce4ae9077e3ba51a46a5fcb (patch) | |
| tree | ff9ad749278725525951c0d836a018fc416b0ca1 /xmake/rules/c++/xmake.lua | |
| parent | 9783d272988b51843869af98e0c53fa00cf9c902 (diff) | |
enable symbols.extract for other langs
Diffstat (limited to 'xmake/rules/c++/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/xmake.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua index 1693b38ac..1e9af0266 100644 --- a/xmake/rules/c++/xmake.lua +++ b/xmake/rules/c++/xmake.lua @@ -44,4 +44,13 @@ rule("c++.build") -- define rule: cpp rule("c++") - add_deps("c++.build", "c.build", "utils.merge.object", "utils.merge.archive") + + -- add build rules + add_deps("c++.build", "c.build") + + -- support `add_files("src/*.o")` and `add_files("src/*.a")` to merge object and archive files to target + add_deps("utils.merge.object", "utils.merge.archive") + + -- we attempt to extract symbols to the independent file and + -- strip self-target binary if `set_symbols("debug")` and `set_strip("all")` are enabled + add_deps("utils.symbols.extract") |
