aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-07-30 15:19:11 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-07-30 15:20:01 +0530
commit577b6dfdf63cde697ff33226950175a93578e2b8 (patch)
tree48058766e57be3559518295db3d9c908489734c4 /mesonbuild/scripts
parent4a92b78e6e4508afb8ca988cb47c91ea4a765fee (diff)
downloadmeson-577b6dfdf63cde697ff33226950175a93578e2b8.zip
meson-577b6dfdf63cde697ff33226950175a93578e2b8.tar.gz
meson-577b6dfdf63cde697ff33226950175a93578e2b8.tar.bz2
find_program: Find scripts without extensions on Windows
Because of how files and executables work on Windows, scripts that use an interpreter must have an extension, and that extension must be associated with an interpreter. The full list of executable extensions is available in the PATHEXT environment variable. However, UNIX-like OSes use an executable bit and read the shebang to figure out what interpreter to use, and the scripts don't need to have extensions. We can now detect these scripts using find_program by manually searching in PATH and reading the shebang.
Diffstat (limited to 'mesonbuild/scripts')
0 files changed, 0 insertions, 0 deletions