aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-06-14 17:30:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2023-06-15 09:41:32 +0200
commit4f4c106e98f85b8e1dd03e9fcfeef9710668b023 (patch)
treef881e23723e850adc56d366192c9c3f34c3075ab /executor/executor.cc
parentff5fb3046c399ee921d31b80e8ec86c73c7d7553 (diff)
executor: move setup_ext() below other features
It makes these extentions much more flexible as they can now also customize what other features set up.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index b2e24f46b..3d6d8f1b8 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -1638,14 +1638,14 @@ void setup_features(char** enable, int n)
// This does any one-time setup for the requested features on the machine.
// Note: this can be called multiple times and must be idempotent.
flag_debug = true;
-#if SYZ_HAVE_SETUP_EXT
- // This can be defined in common_ext.h.
- setup_ext();
-#endif
#if SYZ_HAVE_FEATURES
setup_sysctl();
setup_cgroups();
#endif
+#if SYZ_HAVE_SETUP_EXT
+ // This can be defined in common_ext.h.
+ setup_ext();
+#endif
for (int i = 0; i < n; i++) {
bool found = false;
#if SYZ_HAVE_FEATURES