mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: parse _x64.v files only with -x64
This commit is contained in:
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
|
||||
|
7
vlib/builtin/float_x64.v
Normal file
7
vlib/builtin/float_x64.v
Normal 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() {
|
||||
}
|
||||
|
@ -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
Block a user