1
0
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:
Alexander Medvednikov 2021-09-13 18:34:58 +03:00
parent 04d4431299
commit c99281709b

View File

@ -280,6 +280,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
}
'-nofloat' {
res.nofloat = true
res.compile_defines_all << 'nofloat' // so that `$if nofloat? {` works
}
'-gc' {
gc_mode := cmdline.option(current_args, '-gc', '')