Remove PHONY because Windows and OSX file systems are crap. Closes #2199.

0.42
Jussi Pakkanen 7 years ago committed by Nirbheek Chauhan
parent 0cb6a9819a
commit 97065a2252
  1. 3
      run_unittests.py
  2. 1
      test cases/common/159 reserved targets/PHONY/meson.build
  3. 9
      test cases/common/159 reserved targets/meson.build

@ -1288,6 +1288,9 @@ int main(int argc, char **argv) {
targets = mesonbuild.coredata.forbidden_target_names
# We don't actually define a target with this name
targets.pop('build.ninja')
# Remove this to avoid multiple entries with the same name
# but different case.
targets.pop('PHONY')
for i in targets:
self.assertPathExists(os.path.join(testdir, i))

@ -1 +0,0 @@
executable('test-PHONY', '../test.c')

@ -15,11 +15,10 @@ subdir('coverage-xml')
subdir('dist')
subdir('distcheck')
subdir('install')
# We end up creating duplicate lowercase target names for this on
# case-insensitive HFS+, so disable it
# https://travis-ci.org/mesonbuild/meson/jobs/264468097
#subdir('phony')
subdir('PHONY')
# We don't have a 'PHONY' directory because Windows and OSX
# choke horribly when there are two entries with the same
# name but different case.
subdir('phony')
subdir('reconfigure')
subdir('scan-build')
subdir('test')

Loading…
Cancel
Save