1
0
mirror of https://github.com/facebook/zstd.git synced 2025-11-09 17:41:01 +03:00

Correctness and tidy

Test compilation performed with warnings. Author and license added. Test for failing grep on ancient OSX versions. Replaced the test image with something less noisy (which compresses better).
This commit is contained in:
Carl Woffenden
2019-09-02 18:02:50 +02:00
parent b199bb3e0a
commit 8ac29cc825
7 changed files with 3286 additions and 3961 deletions

View File

@@ -19,7 +19,7 @@ fi
echo "Single file decoder creation script: PASSED"
# Compile the generated output
cc -Os -g0 -o $OUT_FILE examples/simple.c
cc -Wall -Wextra -Werror -Os -g0 -o $OUT_FILE examples/simple.c
# Did compilation work?
if [ $? -ne 0 ]; then
echo "Compiling simple.c: FAILED"
@@ -44,7 +44,7 @@ if [ $? -ne 0 ]; then
echo "(Skipping Emscripten test)"
else
# Compile the Emscripten example
CC_FLAGS="-Wall -Wextra -Os -g0 -flto --llvm-lto 3 -lGL -DNDEBUG=1"
CC_FLAGS="-Wall -Wextra -Werror -Os -g0 -flto --llvm-lto 3 -lGL -DNDEBUG=1"
emcc $CC_FLAGS -s WASM=1 -o $OUT_WASM examples/emscripten.c
# Did compilation work?
if [ $? -ne 0 ]; then