···11+diff --git a/src/ctypesgen/__main__.py b/src/ctypesgen/__main__.py22+index 23ee014..2d0cfc1 10064433+--- a/src/ctypesgen/__main__.py44++++ b/src/ctypesgen/__main__.py55+@@ -89,17 +89,9 @@ def main_impl(args, cmd_str):66+ assert _is_relative_to(args.output, args.linkage_anchor)77+88+ if args.cpp:99+- assert shutil.which(args.cpp[0]), f"Given pre-processor {args.cpp[0]!r} is not available."1010+- else:1111+- if shutil.which("gcc"):1212+- args.cpp = ["gcc", "-E"]1313+- elif shutil.which("cpp"):1414+- args.cpp = ["cpp"]1515+- elif shutil.which("clang"):1616+- args.cpp = ["clang", "-E"]1717+- else:1818+- raise RuntimeError("C pre-processor auto-detection failed: neither gcc nor clang available.")1919+- 2020++ print("cpp argument ignored for nix build")2121++ args.cpp = ["@cc@", "-E"]2222++ 2323+ # Important: must not use +=, this would mutate the original object, which is problematic when default=[] is used and ctypesgen called repeatedly from within python2424+ args.compile_libdirs = args.compile_libdirs + args.universal_libdirs2525+ args.runtime_libdirs = args.runtime_libdirs + args.universal_libdirs