samples: Support custom path to compiler in bat-scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user