mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
struct field check + enable v2 again
This commit is contained in:
@ -8,12 +8,10 @@ import (
|
||||
os.cmdline
|
||||
strings
|
||||
filepath
|
||||
//compiler.x64
|
||||
// v.gen.x64
|
||||
//v.types
|
||||
// v.table
|
||||
// v.parser
|
||||
// v.gen
|
||||
v.gen.x64
|
||||
v.table
|
||||
v.parser
|
||||
v.gen
|
||||
time
|
||||
)
|
||||
|
||||
@ -382,8 +380,6 @@ pub fn (v mut V) compile() {
|
||||
v.cc()
|
||||
}
|
||||
|
||||
pub fn (v &V) compile2() {}
|
||||
/*
|
||||
pub fn (v mut V) compile2() {
|
||||
if os.user_os() != 'windows' && v.pref.ccompiler == 'msvc' {
|
||||
verror('Cannot build with msvc on ${os.user_os()}')
|
||||
@ -418,10 +414,7 @@ pub fn (v mut V) compile2() {
|
||||
v.cc()
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
pub fn (v &V) compile_x64() {}
|
||||
/*
|
||||
pub fn (v mut V) compile_x64() {
|
||||
$if !linux {
|
||||
println('v -x64 can only generate Linux binaries for now')
|
||||
@ -436,16 +429,7 @@ pub fn (v mut V) compile_x64() {
|
||||
println('PARSE: ${time.ticks() - ticks}ms')
|
||||
x64.gen(files, v.out_name)
|
||||
println('x64 GEN: ${time.ticks() - ticks}ms')
|
||||
/*
|
||||
for f in v.files {
|
||||
v.parse(f, .decl)
|
||||
}
|
||||
for f in v.files {
|
||||
v.parse(f, .main)
|
||||
}
|
||||
*/
|
||||
}
|
||||
*/
|
||||
|
||||
fn (v mut V) generate_init() {
|
||||
$if js {
|
||||
|
Reference in New Issue
Block a user