Do not link header tests - ruby detection is broken when the compiler includes the symbols

This commit is contained in:
Thomas Nagy 2015-10-10 10:18:02 +02:00
parent 369bae306f
commit fcec20c9fd
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 4 additions and 1 deletions

View File

@ -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'])