From ad220442d7a5f79828e2567cc272b83dd30c42c2 Mon Sep 17 00:00:00 2001 From: Dietrich Epp Date: Sun, 10 Apr 2022 04:14:14 -0400 Subject: [PATCH] Use -std=c11 when compiling with Bazel The -std=c89 option is too pedantic, and the old CodeWarrior compiler accepts various extensions (like line comments) anyway. Rather than using -std=c89 to ensure the code is compatible with old compilers, we will actually test on the old compilers. --- bazel/copts.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/copts.bzl b/bazel/copts.bzl index a37638f..f570082 100644 --- a/bazel/copts.bzl +++ b/bazel/copts.bzl @@ -12,7 +12,7 @@ # Base C options COPTS_BASE = [ - "-std=c90", + "-std=c11", ] _COPTS_WARNING = [