GH-134273: Allow setting JIT compiler flags at build time with CFLAGS_JIT (GH134276)

This commit is contained in:
Zanie Blue 2025-06-12 18:11:08 -05:00 committed by GitHub
parent 73431356d3
commit 2b0c684e07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 2 deletions

View file

@ -39,11 +39,15 @@
parser.add_argument(
"-v", "--verbose", action="store_true", help="echo commands as they are run"
)
parser.add_argument(
"--cflags", help="additional flags to pass to the compiler", default=""
)
args = parser.parse_args()
for target in args.target:
target.debug = args.debug
target.force = args.force
target.verbose = args.verbose
target.cflags = args.cflags
target.pyconfig_dir = args.pyconfig_dir
target.build(
comment=comment,