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

'clean' target fails when custom_target's output is a directory #1220

Closed
fatih-asici opened this issue Dec 19, 2016 · 1 comment
Closed

'clean' target fails when custom_target's output is a directory #1220

fatih-asici opened this issue Dec 19, 2016 · 1 comment
Milestone

Comments

@fatih-asici
Copy link

I can reproduce it with this test case: test cases/common/131 custom target directory install

It gives the following error:

[1/1] 'Cleaning'
FAILED: clean 
'ninja' '-t' 'clean'
ninja: error: remove(html): Directory not empty
Cleaning... 0 files.
ninja: build stopped: subcommand failed.
@nirbheek
Copy link
Member

This is a Ninja thing apparently; on Linux it only removes empty directories on clean (ninja-build/ninja#828). We will have to add our own tool that maintains a list of directories and deletes them.

We should also enable cleaning in the CI so we don't break this again.

@nirbheek nirbheek added this to the 0.37.1 milestone Dec 19, 2016
geier1993 pushed a commit to geier1993/meson that referenced this issue Dec 29, 2016
geier1993 pushed a commit to geier1993/meson that referenced this issue Dec 29, 2016
The script will manually delete all custom_target outputs that are
directories instead of files. This is needed because on platforms other
than Windows, Ninja only deletes directories while cleaning if they are
empty.

Closes mesonbuild#1220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants