-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for bitcode generation on meson builds #103
base: master
Are you sure you want to change the base?
Changes from all commits
3eb9ffe
0434768
055691e
5808465
072f2c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,22 @@ bool_plperl = shared_module('bool_plperl', | |
) | ||
contrib_targets += bool_plperl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like you accidentally deleted this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's adjusted/fixed on the last commit e4cb123 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not as far as I can see. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nevermind, fixup that completely restores contrib_targets even when |
||
|
||
if llvm.found() | ||
llvm_contrib_bool_plperl_cflags = [ | ||
'-I@0@/contrib/bool_plperl'.format(meson.build_root()), | ||
'-I@0@/contrib/bool_plperl'.format(meson.source_root()), | ||
'-I@0@/src/pl/plperl'.format(meson.build_root()), | ||
'-I@0@/src/pl/plperl'.format(meson.source_root()), | ||
] | ||
|
||
llvm_contrib_sources += { | ||
'bool_plperl': { | ||
'sources': bool_plperl_sources, | ||
'extra_args': llvm_contrib_bool_plperl_cflags + perl_ccflags, | ||
} | ||
} | ||
endif | ||
|
||
install_data( | ||
'bool_plperl.control', | ||
'bool_plperl--1.0.sql', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,15 @@ cube_scan = custom_target('cubescan', | |
) | ||
generated_sources += cube_scan | ||
cube_sources += cube_scan | ||
bc_cube_sources = cube_sources | ||
jeltz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
cube_parse = custom_target('cubeparse', | ||
input: 'cubeparse.y', | ||
kwargs: bison_kw, | ||
) | ||
generated_sources += cube_parse.to_list() | ||
cube_sources += cube_parse | ||
bc_cube_sources += cube_parse[0] | ||
jeltz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
if host_system == 'windows' | ||
cube_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ | ||
|
@@ -32,6 +34,22 @@ cube = shared_module('cube', | |
) | ||
contrib_targets += cube | ||
|
||
if llvm.found() | ||
llvm_contrib_cube_cflags = [ | ||
'-I@BUILD_ROOT@/contrib/cube', | ||
'-I@SOURCE_ROOT@/contrib/cube', | ||
] | ||
|
||
llvm_gen_contrib_cube = generator(llvm_irgen_command, | ||
arguments: llvm_irgen_args + bitcode_cflags + pg_mod_c_args + llvm_contrib_cube_cflags, | ||
depends: cube, | ||
depfile: '@[email protected]', | ||
output: '@[email protected]', | ||
) | ||
|
||
bc_gen_sources_contrib += {'cube': llvm_gen_contrib_cube.process(bc_cube_sources)} | ||
endif | ||
|
||
install_data( | ||
'cube.control', | ||
'cube--1.0--1.1.sql', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and everywhere else: why only add it to
contrib_tarets
whenllvm.found()
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally removed, fixup: f26737a