Skip to content

Commit dc4d7e2

Browse files
katredavidzchen
authored andcommitted
Add "-std=c99" to matrix examples to fix compilation bugs. (#44)
Fixes #43.
1 parent 88e3c0f commit dc4d7e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/matrix/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ cc_library(
66
name = "native_matrix",
77
srcs = ["src/matrix.c"],
88
hdrs = ["src/matrix.h"],
9+
copts = ["-std=c99"],
910
)
1011

1112
cc_test(
1213
name = "native_matrix_test",
1314
srcs = ["src/matrix_test.c"],
15+
copts = ["-std=c99"],
1416
deps = [
1517
":native_matrix",
1618
],
@@ -25,7 +27,7 @@ rust_library(
2527
],
2628
deps = [
2729
":native_matrix",
28-
"@libc//:libc"
30+
"@libc//:libc",
2931
],
3032
)
3133

0 commit comments

Comments
 (0)