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
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>
+2 -2
View File
@@ -16,9 +16,9 @@
gifplayer prints an ASCII representation of the GIF image read from stdin. To
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
(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:
$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
rm -f a.out
To exercise the dynamic library:
$cc -I../../.. library.c -L../../gen/lib/c/$cc-dynamic -lwuffs
LD_LIBRARY_PATH=../../gen/lib/c/$cc-dynamic ./a.out
$CC -I../../.. library.c -L../../gen/lib/c/$CC-dynamic -lwuffs
LD_LIBRARY_PATH=../../gen/lib/c/$CC-dynamic ./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>
+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
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>
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror adler32.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror adler32.c && ./a.out
rm -f a.out
done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror crc32.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror crc32.c && ./a.out
rm -f a.out
done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror deflate.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror deflate.c && ./a.out
rm -f a.out
done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror gif.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror gif.c && ./a.out
rm -f a.out
done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror gzip.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror gzip.c && ./a.out
rm -f a.out
done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror lzw.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror lzw.c && ./a.out
rm -f a.out
done
+2 -2
View File
@@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc.
To manually run this test:
for cc in clang gcc; do
$cc -std=c99 -Wall -Werror zlib.c && ./a.out
for CC in clang gcc; do
$CC -std=c99 -Wall -Werror zlib.c && ./a.out
rm -f a.out
done