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:
@ -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)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user