Squash commits for public release
This commit is contained in:
29
libs/libobjc/BUILD.gn
Normal file
29
libs/libobjc/BUILD.gn
Normal file
@@ -0,0 +1,29 @@
|
||||
import("//build/libs/TEMPLATE.gni")
|
||||
|
||||
xOS_static_library("libobjc") {
|
||||
sources = [
|
||||
"src/NSObject.mm",
|
||||
"src/class.mm",
|
||||
"src/init.mm",
|
||||
"src/memory.mm",
|
||||
"src/msgsend_$target_arch.S",
|
||||
"src/selector.mm",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"include/",
|
||||
"//libs/libc/include/",
|
||||
"//libs/",
|
||||
]
|
||||
|
||||
deplibs = [ "libc" ]
|
||||
|
||||
configs = [ "//build/libs:libobjcc_flags" ]
|
||||
|
||||
# Currently, using Clang+LTO and arm32 as a traget, a weird issue
|
||||
# happens, when linker can't resolve objc_load_function.
|
||||
# Such functions contain `und` instruction and leads to a crash.
|
||||
if (host == "llvm" && target_arch != "arm32") {
|
||||
cflags = [ "-flto" ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user