diff --git a/samples/csvparser/build.bat b/samples/csvparser/build.bat index 3388b8d7f2d..c2ad4e75619 100644 --- a/samples/csvparser/build.bat +++ b/samples/csvparser/build.bat @@ -6,8 +6,5 @@ set DIR=. set "PATH=..\..\dist\bin;..\..\bin;%PATH%" if "%TARGET%" == "" set TARGET=mingw -call cinterop -def "%DIR%\src\main\c_interop\stdio.def" -target "%TARGET%" -o stdio -if ERRORLEVEL 1 exit /b %ERRORLEVEL% - -call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -library stdio -o CsvParser +call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -o CsvParser exit /b %ERRORLEVEL% diff --git a/samples/csvparser/build.sh b/samples/csvparser/build.sh index 5bece90b963..b1bba9f01df 100755 --- a/samples/csvparser/build.sh +++ b/samples/csvparser/build.sh @@ -22,9 +22,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build. mkdir -p $DIR/build/c_interop/ mkdir -p $DIR/build/bin/ -cinterop -def $DIR/src/main/c_interop/stdio.def -compilerOpts "$CFLAGS" -target $TARGET -o $DIR/build/c_interop/stdio || exit 1 - -konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/CsvParser.kt -library $DIR/build/c_interop/stdio \ +konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/CsvParser.kt \ -o $DIR/build/bin/CsvParser || exit 1 echo "Artifact path is $DIR/build/bin/CsvParser.kexe" diff --git a/samples/nonBlockingEchoServer/build.sh b/samples/nonBlockingEchoServer/build.sh index 5c649dbc381..4df7aba8bcb 100755 --- a/samples/nonBlockingEchoServer/build.sh +++ b/samples/nonBlockingEchoServer/build.sh @@ -21,10 +21,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build. mkdir -p $DIR/build/c_interop/ mkdir -p $DIR/build/bin/ -cinterop -def $DIR/src/main/c_interop/sockets.def -copt "$CFLAGS" -target $TARGET \ - -o $DIR/build/c_interop/sockets || exit 1 - konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/EchoServer.kt \ - -library $DIR/build/c_interop/sockets -o $DIR/build/bin/EchoServer || exit 1 + -o $DIR/build/bin/EchoServer || exit 1 echo "Artifact path is $DIR/build/bin/EchoServer.kexe" diff --git a/samples/socket/build.sh b/samples/socket/build.sh index d5f61ba5505..b1d7fd628a8 100755 --- a/samples/socket/build.sh +++ b/samples/socket/build.sh @@ -19,11 +19,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build. mkdir -p $DIR/build/c_interop/ mkdir -p $DIR/build/bin/ -cinterop -def $DIR/src/main/c_interop/sockets.def -copt "$CFLAGS" -target $TARGET \ - -o $DIR/build/c_interop/sockets || exit 1 - konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/EchoServer.kt \ - -library $DIR/build/c_interop/sockets \ -o $DIR/build/bin/EchoServer || exit 1 echo "Artifact path is $DIR/build/bin/EchoServer.kexe"