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

0.42
Jussi Pakkanen 8 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 targets = mesonbuild.coredata.forbidden_target_names
# We don't actually define a target with this name # We don't actually define a target with this name
targets.pop('build.ninja') targets.pop('build.ninja')
# Remove this to avoid multiple entries with the same name
# but different case.
targets.pop('PHONY')
for i in targets: for i in targets:
self.assertPathExists(os.path.join(testdir, i)) 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('dist')
subdir('distcheck') subdir('distcheck')
subdir('install') subdir('install')
# We end up creating duplicate lowercase target names for this on # We don't have a 'PHONY' directory because Windows and OSX
# case-insensitive HFS+, so disable it # choke horribly when there are two entries with the same
# https://travis-ci.org/mesonbuild/meson/jobs/264468097 # name but different case.
#subdir('phony') subdir('phony')
subdir('PHONY')
subdir('reconfigure') subdir('reconfigure')
subdir('scan-build') subdir('scan-build')
subdir('test') subdir('test')

Loading…
Cancel
Save