samples: Support custom path to compiler in bat-scripts
This commit is contained in:
@@ -3,7 +3,13 @@
|
|||||||
setlocal
|
setlocal
|
||||||
|
|
||||||
set DIR=.
|
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
|
if "%TARGET%" == "" set TARGET=mingw
|
||||||
|
|
||||||
call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -o CsvParser
|
call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -o CsvParser
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal
|
setlocal
|
||||||
set DIR=.
|
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
|
if "%TARGET%" == "" set TARGET=mingw
|
||||||
|
|
||||||
set "LFLAGS=-Wl,--subsystem,windows"
|
set "LFLAGS=-Wl,--subsystem,windows"
|
||||||
|
|||||||
Reference in New Issue
Block a user