Meson rewrite usage
#15273
Replies: 1 comment
-
|
Forgot to add some details about my environment:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to using the
rewritecommand so maybe I'm missing something or maybe this is a bug.I'm trying to add source files to a target that is defined in a
meson.buildin a subdir of the repo. When I runmeson rewritethe source file gets added but with an incorrect additional../added to the beginning of the file path. For example, if I'm adding a source file (src/example.c) to a target insrc/meson.buildthenmeson rewritewill add../example.cto the target source files instead ofexample.c. But../example.cdoes not exist and so Meson will complain about that file not existing.I have a repo here with a basic Meson project to replicate this: lizalc/meson-rewrite-test. There is a
meson.buildin the repo root which includes ameson.buildin thesrcdir where the executable target is defined. If I add a source file (src/empty.cin my repo) and runmeson rewriteto add it to the executable target it add../empty.cinstead ofempty.c.Initial repo state without running
meson rewrite: lizalc/meson-rewrite-test@95b4c41Repo state after running
meson rewrite: lizalc/meson-rewrite-test@2afa54aAm I missing something or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions