Skip to content

Commit e6cfb75

Browse files
authored
Bazel improvements (#23)
* make .bazelrc more consistent * add submodule to gitignore * add .bazelignore --------- Co-authored-by: Jeremy Kun <j2kun@users.noreply.github.com>
1 parent d04fa9c commit e6cfb75

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
externals

.bazelrc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
build --action_env=BAZEL_CXXOPTS=-std=c++17
2-
build --cxxopt='-std=c++17'
3-
build --host_cxxopt='-std=c++17'
4-
test --test_output=all
1+
common --action_env=BAZEL_CXXOPTS=-std=c++17
2+
common --cxxopt='-std=c++17'
3+
common --copt=-fdiagnostics-color=always
4+
common --test_output=errors
5+
common -c dbg

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ bazel-mlir-tutorial
44
bazel-out
55
bazel-testlogs
66

7+
# git submodule
8+
externals
9+
710
# cmake related files
811
# ignore the user specified CMake presets in subproject directories.
912
/*/CMakeUserPresets.json

0 commit comments

Comments
 (0)