maybe
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "helloworld.h"
|
||||
|
||||
void main() {
|
||||
printf("hello world\n");
|
||||
int foo() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
3
c.d/helloworld.def
Normal file
3
c.d/helloworld.def
Normal file
@@ -0,0 +1,3 @@
|
||||
headers = helloworld.h
|
||||
headerFilter = helloworld.h
|
||||
package = helloworld
|
||||
@@ -1 +1,3 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int foo();
|
||||
|
||||
@@ -4,5 +4,10 @@ set -e
|
||||
set -o pipefail
|
||||
set -u
|
||||
|
||||
gcc ./*.{h,c}
|
||||
./a.out
|
||||
echo GCC
|
||||
echo gcc ./*.{h,c}
|
||||
|
||||
echo CINTEROP
|
||||
cinterop -def helloworld.def -compiler-option -I. -o helloworld
|
||||
echo LS
|
||||
ls ./helloworld.klib ./helloworld-build/kotlin
|
||||
|
||||
Reference in New Issue
Block a user