chen3feng / blade-build

Blade is a powerful build system from Tencent, supports many mainstream programming languages, such as C/C++, java, scala, python, protobuf...
Other
2.05k stars 500 forks source link

Support linker script for cc_binary / cc_plugin #974

Open chen3feng opened 2 years ago

chen3feng commented 2 years ago

e.g. control symbol's visibility

cc_plugin(
    name = 'xxx'
    srcs = [
        'a.cc',
        'visibility.ld'
    ],
    ...
)
chen3feng commented 2 years ago

https://sourceware.org/binutils/docs/ld/Scripts.html