mirror of https://gitlab.com/ita1024/waf.git
Do not link header tests - ruby detection is broken when the compiler includes the symbols
This commit is contained in:
parent
369bae306f
commit
fcec20c9fd
|
@ -482,7 +482,10 @@ def validate_c(self, kw):
|
|||
kw['type'] = 'cprogram'
|
||||
|
||||
if not 'features' in kw:
|
||||
kw['features'] = [kw['compile_mode'], kw['type']] # "cprogram c"
|
||||
if not 'header_name' in kw:
|
||||
kw['features'] = [kw['compile_mode'], kw['type']] # "c ccprogram"
|
||||
else:
|
||||
kw['features'] = [kw['compile_mode']]
|
||||
else:
|
||||
kw['features'] = Utils.to_list(kw['features'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue