samples: Support custom path to compiler in bat-scripts

This commit is contained in:
Ilya Matveev
2017-11-03 14:48:01 +03:00
committed by ilmat192
parent e74eb15a19
commit 2c63d0e2ed
2 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -3,7 +3,13 @@
setlocal
set DIR=.
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
if defined KONAN_HOME (
set "PATH=%KONAN_HOME%\bin;%PATH%"
) else (
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
)
if "%TARGET%" == "" set TARGET=mingw
call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -o CsvParser
+7 -1
View File
@@ -1,7 +1,13 @@
@echo off
setlocal
set DIR=.
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
if defined KONAN_HOME (
set "PATH=%KONAN_HOME%\bin;%PATH%"
) else (
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
)
if "%TARGET%" == "" set TARGET=mingw
set "LFLAGS=-Wl,--subsystem,windows"