4 name = "cc-multilib-test";
6 # XXX: "depend" on cc-wrapper test?
8 # TODO: Have tests report pointer size or something; ensure they are what we asked for
13 printf "checking whether compiler builds valid C binaries...\n " >&2
14 $CC -o cc-check ${./cc-main.c}
17 printf "checking whether compiler builds valid 32bit C binaries...\n " >&2
18 $CC -m32 -o c32-check ${./cc-main.c}
21 printf "checking whether compiler builds valid 64bit C binaries...\n " >&2
22 $CC -m64 -o c64-check ${./cc-main.c}
25 printf "checking whether compiler builds valid 32bit C++ binaries...\n " >&2
26 $CXX -m32 -o cxx32-check ${./cxx-main.cc}
29 printf "checking whether compiler builds valid 64bit C++ binaries...\n " >&2
30 $CXX -m64 -o cxx64-check ${./cxx-main.cc}
36 meta.platforms = lib.platforms.x86_64;