Support global variables in interop (#903)
This commit is contained in:
committed by
GitHub
parent
7a4aae5ff3
commit
7795a7856a
@@ -2079,6 +2079,11 @@ kotlinNativeInterop {
|
||||
flavor 'native'
|
||||
}
|
||||
|
||||
cglobals {
|
||||
defFile 'interop/basics/cglobals.def'
|
||||
flavor 'native'
|
||||
}
|
||||
|
||||
cfunptr {
|
||||
defFile 'interop/basics/cfunptr.def'
|
||||
flavor 'native'
|
||||
@@ -2160,6 +2165,12 @@ task interop_funptr(type: RunInteropKonanTest) {
|
||||
interop = 'cfunptr'
|
||||
}
|
||||
|
||||
task interop_globals(type: RunInteropKonanTest) {
|
||||
disabled = (project.testTarget == 'wasm32') // No interop for wasm yet.
|
||||
source = "interop/basics/globals.kt"
|
||||
interop = 'cglobals'
|
||||
}
|
||||
|
||||
task interop_echo_server(type: RunInteropKonanTest) {
|
||||
disabled = (project.testTarget == 'wasm32') // No interop for wasm yet.
|
||||
if (!isMac()) {
|
||||
|
||||
Reference in New Issue
Block a user