parser: parse _x64.v files only with -x64

pull/5809/head
Alexander Medvednikov 2020-07-11 19:03:59 +02:00
parent d4dd5645fe
commit a2cb01e16a
3 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,5 @@
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
module builtin
import strconv.ftoa

View File

@ -0,0 +1,7 @@
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
module builtin
fn float_test() {
}

View File

@ -72,6 +72,9 @@ pub fn (prefs &Preferences) should_compile_c(file string) bool {
if file.ends_with('_solaris.c.v') && prefs.os != .solaris {
return false
}
if file.ends_with('_x64.v') && prefs.backend != .x64 {
return false
}
return true
}