This website requires JavaScript.
Explore
Help
Sign In
bazel
/
rules_cc
Watch
2
Star
0
Fork
You've already forked rules_cc
0
mirror of
https://github.com/bazelbuild/rules_cc
synced
2024-11-28 21:34:00 +00:00
Code
Issues
Releases
Activity
c460f83acb
rules_cc
/
examples
/
test_cc_shared_library
/
baz.cc
4 lines
75 B
C++
Raw
Normal View
History
Unescape
Escape
C++: Tests for cc_binary linking shared libraries This is guarded behind the --experimental_cc_shared_library flag PiperOrigin-RevId: 283982821 Change-Id: Ifec330c01d7b480b641f8432ce94175291e79238
2019-12-05 16:49:37 +00:00
#
include
"examples/test_cc_shared_library/baz.h"
Adds example usage of cc_shared_library This is only tested with Bazel at head. We modify the presubmits file so that we don't use release. The reason we don't use release is because we need very recent changes to Bazel to test cc_shared_library. In the future we will also test with release. Also in following CLs, we will inspect in integration test the *.so output from these example builds to make sure that the correct symbols are linked statically and are visible. After that we will add Starlark unit test to check error conditions. RELNOTES:none PiperOrigin-RevId: 280381939 Change-Id: I5de9b364a2a3db28d99558fbfca7bea8052e5114
2019-11-14 10:03:04 +00:00
int
baz
(
)
{
return
42
;
}
Copy permalink