From 4f4c106e98f85b8e1dd03e9fcfeef9710668b023 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 14 Jun 2023 17:30:52 +0200 Subject: 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. --- executor/executor.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index b2e24f46b..3d6d8f1b8 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1638,13 +1638,13 @@ 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; -- cgit mrf-deployment