-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install abseil and downgrade bazel to 7.1.2
Had to downgrade Bazel to 7.1.2 because it was crashing when building abseil. See issue: hedronvision/bazel-compile-commands-extractor#199
- Loading branch information
1 parent
c27582b
commit 8327004
Showing
8 changed files
with
1,960 additions
and
104 deletions.
There are no files selected for viewing
This file contains 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,3 +1,3 @@ | ||
7.2.1 | ||
7.1.2 | ||
# important to prevent errors from version updates | ||
# such as: https://github.com/hedronvision/bazel-compile-commands-extractor/issues/199 |
This file contains 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,7 +1,12 @@ | ||
#include "absl/flags/flag.h" | ||
#include "absl/flags/parse.h" | ||
#include "hello_world.h" | ||
#include <iostream> | ||
|
||
int main() { | ||
HelloWorld(std::cout); | ||
ABSL_FLAG(std::string, name, "World", "name to say hello to"); | ||
|
||
int main(int argc, char **argv) { | ||
absl::ParseCommandLine(argc, argv); | ||
HelloWorld(absl::GetFlag(FLAGS_name), std::cout); | ||
return 0; | ||
} |
This file contains 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,5 +1,5 @@ | ||
#include <ostream> | ||
|
||
void HelloWorld(std::ostream &ostream) { | ||
ostream << "Hello World!" << std::endl; | ||
void HelloWorld(const std::string &name, std::ostream &ostream) { | ||
ostream << "Hello " << name << "!" << std::endl; | ||
} |
This file contains 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 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