[K/N][Runtime] Use the objc module in the unit tests
Calling initRuntime requires some machinery from the objc module (e.g. adding the toKotlin method to NSObject). Include this module to the tests to allow full runtime initialization in the tests
This commit is contained in:
@@ -144,7 +144,8 @@ targetList.forEach { targetName ->
|
||||
"${targetName}LegacyMemoryManager",
|
||||
"${targetName}Strict",
|
||||
"${targetName}Release",
|
||||
"${targetName}StdAlloc"
|
||||
"${targetName}StdAlloc",
|
||||
"${targetName}Objc"
|
||||
)
|
||||
) {
|
||||
includeRuntime()
|
||||
@@ -160,7 +161,8 @@ targetList.forEach { targetName ->
|
||||
"${targetName}Strict",
|
||||
"${targetName}Release",
|
||||
"${targetName}Mimalloc",
|
||||
"${targetName}OptAlloc"
|
||||
"${targetName}OptAlloc",
|
||||
"${targetName}Objc"
|
||||
)
|
||||
) {
|
||||
includeRuntime()
|
||||
@@ -177,7 +179,8 @@ targetList.forEach { targetName ->
|
||||
"${targetName}SameThreadMsGc",
|
||||
"${targetName}Release",
|
||||
"${targetName}Mimalloc",
|
||||
"${targetName}OptAlloc"
|
||||
"${targetName}OptAlloc",
|
||||
"${targetName}Objc"
|
||||
)
|
||||
) {
|
||||
headersDirs += files("src/gc/stms/cpp", "src/gc/common/cpp", "src/mm/cpp")
|
||||
@@ -194,7 +197,8 @@ targetList.forEach { targetName ->
|
||||
"${targetName}CommonGc",
|
||||
"${targetName}SameThreadMsGc",
|
||||
"${targetName}Release",
|
||||
"${targetName}StdAlloc"
|
||||
"${targetName}StdAlloc",
|
||||
"${targetName}Objc"
|
||||
)
|
||||
) {
|
||||
headersDirs += files("src/gc/stms/cpp", "src/gc/common/cpp", "src/mm/cpp")
|
||||
@@ -212,7 +216,8 @@ targetList.forEach { targetName ->
|
||||
"${targetName}NoopGc",
|
||||
"${targetName}Release",
|
||||
"${targetName}Mimalloc",
|
||||
"${targetName}OptAlloc"
|
||||
"${targetName}OptAlloc",
|
||||
"${targetName}Objc"
|
||||
)
|
||||
) {
|
||||
headersDirs += files("src/gc/noop/cpp", "src/gc/common/cpp", "src/mm/cpp")
|
||||
@@ -229,7 +234,8 @@ targetList.forEach { targetName ->
|
||||
"${targetName}CommonGc",
|
||||
"${targetName}NoopGc",
|
||||
"${targetName}Release",
|
||||
"${targetName}StdAlloc"
|
||||
"${targetName}StdAlloc",
|
||||
"${targetName}Objc"
|
||||
)
|
||||
) {
|
||||
headersDirs += files("src/gc/noop/cpp", "src/gc/common/cpp", "src/mm/cpp")
|
||||
|
||||
Reference in New Issue
Block a user