Skip to content

Commit 895b48d

Browse files
committed
fix(ci): handle --cppflags, --ldflags in pg_config stub
1 parent d8c55e0 commit 895b48d

File tree

1 file changed

+13
-0
lines changed
  • scripts/build/pg_config_vcpkg_stub/pg_config_vcpkg_stub

1 file changed

+13
-0
lines changed

scripts/build/pg_config_vcpkg_stub/pg_config_vcpkg_stub/__init__.py

+13
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def _main() -> None:
4444
raise ScriptError(f"libpq include directory not found: {d}")
4545
print(vcpkg_platform_root.joinpath("include"))
4646

47+
elif args.cppflags or args.ldflags:
48+
print("")
49+
4750
else:
4851
raise ScriptError("command not handled")
4952

@@ -63,6 +66,16 @@ def parse_cmdline() -> Namespace:
6366
action="store_true",
6467
help="show location of C header files of the client interfaces",
6568
)
69+
g.add_argument(
70+
"--cppflags",
71+
action="store_true",
72+
help="(dummy) show CPPFLAGS value used when PostgreSQL was built",
73+
)
74+
g.add_argument(
75+
"--ldflags",
76+
action="store_true",
77+
help="(dummy) show LDFLAGS value used when PostgreSQL was built",
78+
)
6679
opt = parser.parse_args()
6780
return opt
6881

0 commit comments

Comments
 (0)