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:
@ -1,6 +1,5 @@
|
|||||||
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
|
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
|
||||||
// Use of this source code is governed by an MIT license
|
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
|
||||||
// that can be found in the LICENSE file.
|
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
import strconv.ftoa
|
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 {
|
if file.ends_with('_solaris.c.v') && prefs.os != .solaris {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if file.ends_with('_x64.v') && prefs.backend != .x64 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user