Lines Matching refs:compiler
160 var compiler struct {
168 // It returns a non-nil error if the compiler matches a known version schema but
171 compiler.Once.Do(func() {
172 compiler.err = func() error {
173 compiler.name = "unknown"
181 // Compiler does not support "--version" flag: not Clang or GCC.
187 compiler.name = "gcc"
203 compiler.name = "clang"
210 if compiler.major, err = strconv.Atoi(string(match[1])); err != nil {
213 if compiler.minor, err = strconv.Atoi(string(match[2])); err != nil {
219 return compiler.version, compiler.err
265 compiler, _ := compilerVersion()
266 if compiler.name == "gcc" {
293 // skipIfCSanitizerBroken skips t if the C compiler does not produce working
376 // libcgo.h sets CGO_TSAN if it detects TSAN support in the C compiler.