meson: use "cpp -E -dM" to process header file
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Jun 2023 07:54:20 +0000 (09:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Jun 2023 08:48:36 +0000 (10:48 +0200)
commit1e473c2ebbcfd510238ea9d031ca7d73a9591a75
treeed31f42c4302d298c0d9f9166b596a39f3dfdd48
parentc18dde32e5b6c6f523fb312668c6fb4f87236978
meson: use "cpp -E -dM" to process header file

This was requested in review:
https://github.com/systemd/systemd/pull/27846#discussion_r1210383265

I kept this as separate commit because the change would impact both of
the previous commits and splitting it up seems like unnecessary work.
The result is unchanged.

v2:
- use universal_newlines=True to keep compat with Python 3.6 on C8S.
src/shared/ethtool-link-mode.py
src/shared/meson.build