Lines Matching full:cc
6 # Provides a library of common tests on top of the 'cc' module.
8 use cc
10 # @cc-check-lfs
19 proc cc-check-lfs {} {
20 cc-check-includes sys/types.h
23 if {[msg-quiet cc-with {-includes sys/types.h} {cc-check-sizeof off_t}] == 8} {
25 …} elseif {[msg-quiet cc-with {-includes sys/types.h -cflags -D_FILE_OFFSET_BITS=64} {cc-check-size…
36 # @cc-check-endian
45 proc cc-check-endian {} {
46 cc-check-includes sys/types.h sys/param.h
49 cc-with {-includes {sys/types.h sys/param.h}} {
77 # @cc-check-flags flag ?...?
82 proc cc-check-flags {args} {
84 array set opts [cc-get-settings]
95 autosetup-error "cc-check-flags failed with unknown language: $opts(-lang)"
103 cc-with [list -cflags [list $flag]]
113 # @cc-check-standards ver ?...?
118 proc cc-check-standards {args} {
119 array set opts [cc-get-settings]
121 if {[cc-check-flags -std=$std]} {
139 # @cc-check-c11
143 proc cc-check-c11 {} {
159 # @cc-check-alloca
165 proc cc-check-alloca {} {
166 cc-check-some-feature alloca {
171 # @cc-signal-return-type
176 proc cc-signal-return-type {} {
178 cc-with {-includes {sys/types.h signal.h}} {