|
|
@ -20,17 +20,19 @@ foreach static : [true, false] |
|
|
|
'llvm', |
|
|
|
'llvm', |
|
|
|
modules : ['bitwriter', 'asmprinter', 'executionengine', 'target', |
|
|
|
modules : ['bitwriter', 'asmprinter', 'executionengine', 'target', |
|
|
|
'mcjit', 'nativecodegen'], |
|
|
|
'mcjit', 'nativecodegen'], |
|
|
|
required : true, |
|
|
|
required : false, |
|
|
|
static : static, |
|
|
|
static : static, |
|
|
|
) |
|
|
|
) |
|
|
|
name = static ? 'static' : 'dynamic' |
|
|
|
if llvm_dep.found() |
|
|
|
executable( |
|
|
|
name = static ? 'static' : 'dynamic' |
|
|
|
'sum-@0@'.format(name), |
|
|
|
executable( |
|
|
|
'sum.c', |
|
|
|
'sum-@0@'.format(name), |
|
|
|
dependencies : [ |
|
|
|
'sum.c', |
|
|
|
llvm_dep, dep_tinfo, |
|
|
|
dependencies : [ |
|
|
|
dependency('zlib'), |
|
|
|
llvm_dep, dep_tinfo, |
|
|
|
meson.get_compiler('c').find_library('dl', required : false), |
|
|
|
dependency('zlib'), |
|
|
|
] |
|
|
|
meson.get_compiler('c').find_library('dl', required : false), |
|
|
|
) |
|
|
|
] |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
endif |
|
|
|
endforeach |
|
|
|
endforeach |
|
|
|