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/objc++/xmake.lua | |
| parent | 9783d272988b51843869af98e0c53fa00cf9c902 (diff) | |
enable symbols.extract for other langs
Diffstat (limited to 'xmake/rules/objc++/xmake.lua')
| -rw-r--r-- | xmake/rules/objc++/xmake.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua index 9f649a834..248745b86 100644 --- a/xmake/rules/objc++/xmake.lua +++ b/xmake/rules/objc++/xmake.lua @@ -32,4 +32,13 @@ rule("objc++.build") -- define rule: objc rule("objc++") - add_deps("objc++.build", "objc.build", "utils.merge.object", "utils.merge.archive") + + -- add build rules + add_deps("objc++.build", "objc.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") |
