Skip to content

Commit

Permalink
Add use_apx flag to options.conf
Browse files Browse the repository at this point in the history
Set value True by default, but other added options still default to
false.

diff --git a/options.conf b/options.conf
index ed481d682825..127ec6e6ffaa 100644
--- a/options.conf
+++ b/options.conf
@@ -59,6 +59,16 @@ server = false
 skip_tests = false
 # add .so files to the lib package instead of dev
 so_to_lib = false
+# configure build for apx
+use_apx = true
+# configure build for avx2
+use_avx2 = false
+# configure build for avx512
+use_avx512 = false
+# add clang flags
+use_clang = false
+# configure build for lto
+use_lto = false
 # require package verification for build
 verify_required = false
  • Loading branch information
bwarden committed Jan 4, 2024
1 parent c1050fe commit ab27b0e
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit ab27b0e

Please sign in to comment.