pref: pass custom -d options down to `v build-module` (fix for -usecache)
parent
1e4b3a7b27
commit
adaffd0d8e
|
@ -542,6 +542,7 @@ pub fn cc_from_string(cc_str string) CompilerType {
|
|||
|
||||
fn parse_define(mut prefs Preferences, define string) {
|
||||
define_parts := define.split('=')
|
||||
prefs.build_options << '-d $define'
|
||||
if define_parts.len == 1 {
|
||||
prefs.compile_defines << define
|
||||
prefs.compile_defines_all << define
|
||||
|
|
Loading…
Reference in New Issue