nixpkgs/pkgs/by-name/ld/ld64/gen_compile_stubs.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
220 B
Python
Raw Normal View History

2024-04-09 11:48:23 +00:00
#!/usr/bin/env python
import sys
from pathlib import Path
byteseq = (str(int(x)) for x in Path(sys.argv[1]).read_bytes())
print("#pragma once")
print(f"static const char compile_stubs[] = {{ {', '.join(byteseq)} }};")