mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
pref: define nofloat comptime define
This commit is contained in:
parent
04d4431299
commit
c99281709b
@ -280,6 +280,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
|
|||||||
}
|
}
|
||||||
'-nofloat' {
|
'-nofloat' {
|
||||||
res.nofloat = true
|
res.nofloat = true
|
||||||
|
res.compile_defines_all << 'nofloat' // so that `$if nofloat? {` works
|
||||||
}
|
}
|
||||||
'-gc' {
|
'-gc' {
|
||||||
gc_mode := cmdline.option(current_args, '-gc', '')
|
gc_mode := cmdline.option(current_args, '-gc', '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user