diff options
author | Jade Lovelace <software@lfcode.ca> | 2024-06-23 00:26:18 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-23 12:32:24 +0300 |
commit | 5597b6711ddb05499a9d42a5d16ff3be9d549fe8 (patch) | |
tree | 1bd43267282fe38d74622a7d56c1f3856242c5c4 | |
parent | c21b886ba8a60cce7fa56e4be40bd7547129fb00 (diff) | |
download | meson-5597b6711ddb05499a9d42a5d16ff3be9d549fe8.zip meson-5597b6711ddb05499a9d42a5d16ff3be9d549fe8.tar.gz meson-5597b6711ddb05499a9d42a5d16ff3be9d549fe8.tar.bz2 |
tests: fix OpenAL test case on case sensitive fs on macOS
Preface: why are we doing this?
For reasons of cross-platform interop, the Lix team is strongly
considering switching to build on a case sensitive filesystem in the
macOS installation, since otherwise storing case overlapping filenames
is busted and requires very very bad hacks:
https://git.lix.systems/lix-project/lix/issues/332
What's wrong:
Command line: `clang++ '/nix/temp/meson/b d01bff197e/meson-private/tmpjqid64j1/testfile.cpp' -o '/nix/temp/meson/b d01bff197e/meson-private/tmpjqid64j1/output.exe' -O0 -fpermissive -Werror=implicit-function-declaration -F/nix/store/qa92ravmclyraw7b46cz3q3m834mmbw9-apple-framework-OpenAL/Library/Frameworks -framework openal` -> 1
stderr:
ld: framework not found openal
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
Why is that happening:
$ ls /nix/store/qa92ravmclyraw7b46cz3q3m834mmbw9-apple-framework-OpenAL/Library/Frameworks
OpenAL.framework
So the test was relying on case insensitive fs, which is not a reliable
assumption on all macOS installations (since weird people like us can
set their fs to case sensitive!).
-rw-r--r-- | test cases/osx/9 framework recasting/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/osx/9 framework recasting/meson.build b/test cases/osx/9 framework recasting/meson.build index f139485..2b15843 100644 --- a/test cases/osx/9 framework recasting/meson.build +++ b/test cases/osx/9 framework recasting/meson.build @@ -1,5 +1,5 @@ project('framework recasting', 'c', 'cpp') -x = dependency('openal') +x = dependency('OpenAL') y = executable('tt', files('main.cpp'), dependencies: x) |