Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add use_apx flag to options.conf #813

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion autospec/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def __init__(self, download_path):
"broken_c++": "extend flags with '-std=gnu++98",
"cargo_vendor": "create vendor archive with cargo",
"use_lto": "configure build for lto",
"use_apx": "configure build for APX",
"use_avx2": "configure build for avx2",
"use_avx512": "configure build for avx512",
"keepstatic": "do not remove static libraries",
Expand Down Expand Up @@ -411,7 +412,10 @@ def rewrite_config_opts(self):
# (in case of a user-created options.conf)
missing = set(self.config_options.keys()).difference(set(self.config_opts.keys()))
for option in missing:
self.config_opts[option] = False
if option in ['use_apx']:
self.config_opts[option] = True
else:
self.config_opts[option] = False

for fname, comment in sorted(self.config_options.items()):
config_f.set('autospec', '# {}'.format(comment))
Expand Down