3 import os
, sys
, subprocess
6 output_type
= "executable"
12 output_type
= "shared"
13 elif arg
== "-dynamiclib":
16 output_type
= "object"
18 output_type
= "assembly"
23 print("No output file name!")
26 ret
= subprocess
.call(sys
.argv
[1:])
30 # If we produce a dylib, ad-hoc sign it.
31 if output_type
in ["shared", "dylib"]:
32 ret
= subprocess
.call(["codesign", "-s", "-", output
])