From d17a1b40366b02396c54512076f61bd72fa7faab Mon Sep 17 00:00:00 2001 From: Richard Geldreich Date: Tue, 10 Sep 2024 14:46:11 -0400 Subject: [PATCH] UASTC HDR merge --- contrib/single_file_transcoder/create_transcoder.sh | 4 +++- contrib/single_file_transcoder/examples/simple.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/single_file_transcoder/create_transcoder.sh b/contrib/single_file_transcoder/create_transcoder.sh index 6016549..7fe226d 100755 --- a/contrib/single_file_transcoder/create_transcoder.sh +++ b/contrib/single_file_transcoder/create_transcoder.sh @@ -22,7 +22,7 @@ which cc > /dev/null if [ $? -ne 0 ]; then echo "(Skipping compile test)" else - cc -lm -std=c++11 -lstdc++ -Wall -Wextra -Werror -Os -g0 -fno-exceptions -fno-rtti -o $OUT_FILE examples/simple.cpp + cc -std=c++11 -Wall -Wextra -Wno-unused-value -Os -g0 -fno-exceptions -fno-rtti -fno-strict-aliasing -o $OUT_FILE examples/simple.cpp -lstdc++ -lm # Did compilation work? if [ $? -ne 0 ]; then echo "Compiling simple.cpp: FAILED" @@ -39,3 +39,5 @@ else fi echo "Running simple.cpp: PASSED" fi + + diff --git a/contrib/single_file_transcoder/examples/simple.cpp b/contrib/single_file_transcoder/examples/simple.cpp index 64c8b09..538b8ec 100644 --- a/contrib/single_file_transcoder/examples/simple.cpp +++ b/contrib/single_file_transcoder/examples/simple.cpp @@ -6,7 +6,7 @@ * \n * Compile using: * \code - * cc -std=c++11 -lstdc++ simple.cpp + * cc -std=c++11 -lstdc++ -fno-strict-aliasing simple.cpp * \endcode * * Example code released under a CC0 license.