Skip to content
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

Can't extract objects form custom_target() #8333

Closed
elmarco opened this issue Feb 12, 2021 · 3 comments · Fixed by #9400
Closed

Can't extract objects form custom_target() #8333

elmarco opened this issue Feb 12, 2021 · 3 comments · Fixed by #9400
Labels

Comments

@elmarco
Copy link
Contributor

elmarco commented Feb 12, 2021

While trying to add a custom_target() to a plugin in qemu, I reached the following error:

ERROR: Object extraction arguments must be strings or Files.

Here is a small example:

project('object extraction', 'c')

ct = custom_target('custom target', output: ['test.c'], command: ['echo', ''], capture: true)
lib1 = shared_library('somelib', ct)
obj1 = lib1.extract_objects(ct)

help welcome!

@dcbaker dcbaker added the bug label Feb 12, 2021
@dcbaker
Copy link
Member

dcbaker commented Feb 12, 2021

Yet another place where a CustomTarget doesn't work when used to compile a library.

bonzini added a commit to bonzini/meson that referenced this issue Oct 14, 2021
bonzini added a commit to bonzini/meson that referenced this issue Oct 14, 2021
bonzini added a commit to bonzini/meson that referenced this issue Oct 14, 2021
bonzini added a commit to bonzini/meson that referenced this issue Oct 14, 2021
@kvtb
Copy link

kvtb commented Oct 19, 2021

wow.
just hit the problem and it is fixed just 4 days ago
thank you!

@bonzini
Copy link
Contributor

bonzini commented Oct 19, 2021

It will not be fixed in 0.60, though, so you'll have to wait a bit. Glad to help though :)

bonzini added a commit to bonzini/meson that referenced this issue Oct 28, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 14, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 15, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 15, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 17, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 23, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 24, 2021
bonzini added a commit to bonzini/meson that referenced this issue Nov 29, 2021
Dudemanguy pushed a commit to Dudemanguy/meson that referenced this issue Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants