Capitalize the $CC and $CXX environment variables

This commit is contained in:
Nigel Tao committed 2018-06-30 10:43:26 +10:00
1 parent f3538d9117
commit 6183aba9d7
11 files changed
+24 -24

No files matched your search

+2 -2
View File
@@ -20,9 +20,9 @@ program only reads from stdin.
This example program differs from the other example Wuffs programs in that it This example program differs from the other example Wuffs programs in that it
is written in C++, not C. is written in C++, not C.
$cxx crc32.cc && ./a.out < ../../README.md; rm -f a.out $CXX crc32.cc && ./a.out < ../../README.md; rm -f a.out
for a C++ compiler $cxx, such as clang++ or g++. for a C++ compiler $CXX, such as clang++ or g++.
*/ */
#include <errno.h> #include <errno.h>
+2 -2
View File
@@ -16,9 +16,9 @@
gifplayer prints an ASCII representation of the GIF image read from stdin. To gifplayer prints an ASCII representation of the GIF image read from stdin. To
play Eadweard Muybridge's iconic galloping horse animation, run: play Eadweard Muybridge's iconic galloping horse animation, run:
$cc gifplayer.c && ./a.out < ../../test/data/muybridge.gif; rm -f a.out $CC gifplayer.c && ./a.out < ../../test/data/muybridge.gif; rm -f a.out
for a C compiler $cc, such as clang or gcc. for a C compiler $CC, such as clang or gcc.
Add the -color flag to a.out to get 24 bit color ("true color") terminal output Add the -color flag to a.out to get 24 bit color ("true color") terminal output
(in the UTF-8 format) instead of plain ASCII output. Not all terminal emulators (in the UTF-8 format) instead of plain ASCII output. Not all terminal emulators
+4 -4
View File
@@ -17,17 +17,17 @@ library exercises the software libraries built by `wuffs genlib`.
To exercise the static library: To exercise the static library:
$cc -static -I../../.. library.c ../../gen/lib/c/$cc-static/libwuffs.a $CC -static -I../../.. library.c ../../gen/lib/c/$CC-static/libwuffs.a
./a.out ./a.out
rm -f a.out rm -f a.out
To exercise the dynamic library: To exercise the dynamic library:
$cc -I../../.. library.c -L../../gen/lib/c/$cc-dynamic -lwuffs $CC -I../../.. library.c -L../../gen/lib/c/$CC-dynamic -lwuffs
LD_LIBRARY_PATH=../../gen/lib/c/$cc-dynamic ./a.out LD_LIBRARY_PATH=../../gen/lib/c/$CC-dynamic ./a.out
rm -f a.out rm -f a.out
for a C compiler $cc, such as clang or gcc. for a C compiler $CC, such as clang or gcc.
*/ */
#include <unistd.h> #include <unistd.h>
+2 -2
View File
@@ -17,9 +17,9 @@ zcat decodes gzip'ed data to stdout. It is similar to the standard /bin/zcat
program, except that this example program only reads from stdin. On Linux, it program, except that this example program only reads from stdin. On Linux, it
also self-imposes a SECCOMP_MODE_STRICT sandbox. To run: also self-imposes a SECCOMP_MODE_STRICT sandbox. To run:
$cc zcat.c && ./a.out < ../../test/data/romeo.txt.gz; rm -f a.out $CC zcat.c && ./a.out < ../../test/data/romeo.txt.gz; rm -f a.out
for a C compiler $cc, such as clang or gcc. for a C compiler $CC, such as clang or gcc.
*/ */
#include <errno.h> #include <errno.h>
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror adler32.c && ./a.out $CC -std=c99 -Wall -Werror adler32.c && ./a.out
rm -f a.out rm -f a.out
done done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror crc32.c && ./a.out $CC -std=c99 -Wall -Werror crc32.c && ./a.out
rm -f a.out rm -f a.out
done done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror deflate.c && ./a.out $CC -std=c99 -Wall -Werror deflate.c && ./a.out
rm -f a.out rm -f a.out
done done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror gif.c && ./a.out $CC -std=c99 -Wall -Werror gif.c && ./a.out
rm -f a.out rm -f a.out
done done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror gzip.c && ./a.out $CC -std=c99 -Wall -Werror gzip.c && ./a.out
rm -f a.out rm -f a.out
done done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror lzw.c && ./a.out $CC -std=c99 -Wall -Werror lzw.c && ./a.out
rm -f a.out rm -f a.out
done done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test: To manually run this test:
for cc in clang gcc; do for CC in clang gcc; do
$cc -std=c99 -Wall -Werror zlib.c && ./a.out $CC -std=c99 -Wall -Werror zlib.c && ./a.out
rm -f a.out rm -f a.out
done done