Skip to content

Commit b6ab36c

Browse files
committed
[Fix] build: dist.sh: Only test header with clang -stdlib options when supported.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@25200 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 687945e commit b6ab36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/auto/dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function headercheck_cpp() {
223223
HEADERCHECK_STDLIB="${4}"
224224
HEADERCHECK_OPTIONS="${5}"
225225
echo '#include <array>' > bin/empty.cpp
226-
if ${HEADERCHECK_COMPILER} ${HEADERCHECK_STANDARD} -c bin/empty.cpp -o bin/empty.${HEADERCHECK_NAME}.out > /dev/null 2>&1 ; then
226+
if ${HEADERCHECK_COMPILER} ${HEADERCHECK_STANDARD} ${HEADERCHECK_STDLIB} -c bin/empty.cpp -o bin/empty.${HEADERCHECK_NAME}.out > /dev/null 2>&1 ; then
227227
echo '' > bin/headercheck.cpp
228228
echo '#include "libopenmpt/libopenmpt.hpp"' >> bin/headercheck.cpp
229229
echo 'int main() { return 0; }' >> bin/headercheck.cpp

0 commit comments

Comments
 (0)