File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
tests/cc/current_py_cc_libs Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ cc_test(
4242 name = "python_libs_linking_windows_test" ,
4343 srcs = ["python_libs_linking_test.cc" ],
4444 defines = ["Py_LIMITED_API=0x030A0000" ],
45- target_compatible_with = ["@platforms//os:windows" ],
45+ env = {
46+ "HELLO" : "world" ,
47+ },
48+ target_compatible_with = ["@platforms//os:macos" ],
4649 deps = [
4750 "@rules_python//python/cc:current_py_cc_headers" ,
4851 ],
Original file line number Diff line number Diff line change 1+ #include < cstdlib>
12#include < Python.h>
23
34int main (int argc, char ** argv) {
45 // Early return to prevent the broken code below from running.
5- if (argc >= 1 ) {
6+ char * val = std::getenv (" HELLO" );
7+ if (val || argc >= 1 ) {
68 return 0 ;
79 }
810
You can’t perform that action at this time.
0 commit comments