1 assert(host_os != "win", "loadable modules not supported on win")
3 loadable_module("Hello") {
4 output_name = "LLVMHello"
6 # LLVMHello doesn't want to link in any LLVM code, it just
8 "//llvm/include/llvm/IR:public_tablegen",
14 if (host_os != "mac" && host_os != "win") {
15 # The GN build currently doesn't globally pass -fPIC, but that's
16 # needed for building .so files on ELF. Just pass it manually
17 # for loadable_modules for now.
21 # FIXME: Use Hello.exports to remove all exports.