1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: make V compilable wit the tcc backend

This commit is contained in:
Alexander Medvednikov
2019-10-11 03:55:54 +03:00
parent c3787e17fd
commit 726aaecc46
5 changed files with 15 additions and 2 deletions

View File

@ -41,6 +41,12 @@ fn (p mut Parser) comp_time() {
p.statements_no_rcbr()
p.genln('#endif')
}
else if name == 'tinyc' {
p.genln('#ifdef __TINYC__')
p.check(.lcbr)
p.statements_no_rcbr()
p.genln('#endif')
}
else {
println('Supported platforms:')
println(supported_platforms)

View File

@ -4,6 +4,9 @@ import os
#flag windows -l shell32
// RegOpenKeyExA etc
#flag windows -l advapi32
struct MsvcResult {
full_cl_exe_path string
exe_path string