parser: parse _x64.v files only with -x64
parent
d4dd5645fe
commit
a2cb01e16a
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue