-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add dependency to gflags and related tests #845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ca476f4
Add dependency to gflags and related tests
wangkuiyi ac27109
Use @ instead of //external to refer to external dependencies, so to …
f9f2741
Resolve conflict
6a98917
Fix all building errors
8777ff3
Use yapf to auto format all BUILD and WORKSPACE files
35ccf9c
Disable clang-format check on a trick part of our source code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
licenses(["notice"]) # Apache 2.0 | ||
|
||
cc_test( | ||
name = "gflags_test", | ||
srcs = ["gflags_test.cc"], | ||
copts = ["-Iexternal/gtest/include"], | ||
deps = [ | ||
name="gflags_test", | ||
srcs=["gflags_test.cc"], | ||
copts=["-Iexternal/gtest/include"], | ||
deps=[ | ||
"@gtest//:gtest", | ||
"@gflags//:gflags", | ||
], | ||
) | ||
], ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
licenses(["notice"]) # Apache 2.0 | ||
|
||
cc_test( | ||
name = "glog_test", | ||
srcs = ["glog_test.cc"], | ||
copts = ["-Iexternal/gtest/include"], | ||
deps =[ | ||
name="glog_test", | ||
srcs=["glog_test.cc"], | ||
copts=["-Iexternal/gtest/include"], | ||
deps=[ | ||
"@gtest//:gtest", | ||
"@glog//:glog", | ||
], | ||
) | ||
], ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
cc_library( | ||
name = "gtest", | ||
srcs = glob( | ||
["src/*.cc"], | ||
exclude = ["src/gtest-all.cc"] | ||
), | ||
hdrs = glob([ | ||
"include/**/*.h", | ||
"src/*.h" | ||
]), | ||
copts = ["-Iexternal/gtest/include"], | ||
linkopts = ["-pthread"], | ||
visibility = ["//visibility:public"], | ||
) | ||
name="gtest", | ||
srcs=glob( | ||
["src/*.cc"], exclude=["src/gtest-all.cc"]), | ||
hdrs=glob(["include/**/*.h", "src/*.h"]), | ||
copts=["-Iexternal/gtest/include"], | ||
linkopts=["-pthread"], | ||
visibility=["//visibility:public"], ) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件目前还有点问题,参考这个PR #873
所以,麻烦把这个文件revert吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我一revert就过不了pre-commit check了。
这里把 #include "hl_cuda.h" 这行挪一下位置应该不会影响编译才对?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不影响编译,影响了clang-format的自动化format。。
因为似乎clang-format 4.X 和3.8+在这个细节上有区别。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
要不先等#873 merge就好了。。手动把这段format关掉就行了。。
或者在您这个PR里面手动关掉。我把我那个PR close掉也行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done