Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Add more options to cpp target example
Browse files Browse the repository at this point in the history
  • Loading branch information
SocksDevil committed Apr 14, 2021
1 parent 483d9fd commit b7cd44d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ class BazelBspServerTestData {

static final CppOptionsItem CPP_OPTIONS_ITEM =
new CppOptionsItem(
EXAMPLE_EXAMPLE_TARGET, ImmutableList.of(), ImmutableList.of(), ImmutableList.of());
EXAMPLE_EXAMPLE_TARGET,
ImmutableList.of("-Iexternal/gtest/include"),
ImmutableList.of("BOOST_FALLTHROUGH"),
ImmutableList.of("-pthread"));

static final CppOptionsResult CPP_OPTIONS_RESULT =
new CppOptionsResult(ImmutableList.of(CPP_OPTIONS_ITEM));
Expand Down
9 changes: 9 additions & 0 deletions test-resources/cpp-project/example/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ cc_binary(
deps = [
"@com_google_googletest//:gtest_main",
],
copts = [
"-Iexternal/gtest/include",
],
defines = [
"BOOST_FALLTHROUGH",
],
linkopts = [
"-pthread",
],
)

0 comments on commit b7cd44d

Please sign in to comment.