Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/transcc/builder.monkey
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ Class Builder

Print "Parsing..."

SetConfigVar "HOST",ENV_HOST
Local host:String=tcc.opt_host
If host.Length<=0 host = ENV_HOST

SetConfigVar "HOST",host
SetConfigVar "LANG",ENV_LANG
SetConfigVar "TARGET",ENV_TARGET
SetConfigVar "CONFIG",ENV_CONFIG
Expand Down
3 changes: 3 additions & 0 deletions src/transcc/transcc.monkey
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Class TransCC
Field opt_target:String
Field opt_modpath:String
Field opt_builddir:String
Field opt_host:String

'config file
Field ANDROID_PATH:String
Expand Down Expand Up @@ -296,6 +297,8 @@ Class TransCC
opt_modpath=rhs
Case "-builddir"
opt_builddir=rhs
Case "-host"
opt_host = rhs.ToLower()
Default
Die "Unrecognized command line option: "+arg
End
Expand Down