Skip to content

Commit 05fbd87

Browse files
authored
Merge pull request #2 from noajshu/codex/test-bazel-build-and-tests
Fix Bazel build on Linux
2 parents 029ac62 + 64e20ff commit 05fbd87

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ OPT_COPTS = select({
2727
"//conditions:default": [
2828
"-Ofast",
2929
"-fno-fast-math",
30-
"-flto",
3130
"-march=native",
3231
],
3332
":debug": ["-Og"],
@@ -42,7 +41,6 @@ OPT_LINKOPTS = select({
4241
"//conditions:default": [
4342
"-Ofast",
4443
"-fno-fast-math",
45-
"-flto",
4644
"-march=native",
4745
],
4846
":debug": [],
@@ -141,6 +139,7 @@ cc_test(
141139
cc_test(
142140
name = "common_tests",
143141
srcs = ["common.test.cc"],
142+
linkstatic = True,
144143
deps = [
145144
":libcommon",
146145
"@gtest",

0 commit comments

Comments
 (0)