Port: normalize path in test_plugin_bt2
[babeltrace.git] / cli / babeltrace-cfg-cli-args-default.c
index 0617b59dcf3359683a20bd0046a7f9cb2f96ce12..6dcd72d7c1fdbda6bb67e152ce844600b1735fc5 100644 (file)
 #include "babeltrace-cfg-cli-args.h"
 #include "babeltrace-cfg-cli-args-default.h"
 
+#ifdef ENABLE_DEBUG_INFO
+# define BT_ENABLE_DEBUG_INFO  1
+#else
+# define BT_ENABLE_DEBUG_INFO  0
+#endif
+
 #ifdef BT_SET_DEFAULT_IN_TREE_CONFIGURATION
 
 struct bt_config *bt_config_cli_args_create_with_default(int argc,
@@ -47,7 +53,7 @@ struct bt_config *bt_config_cli_args_create_with_default(int argc,
        }
 
        cfg = bt_config_cli_args_create(argc, argv, retcode, true, true,
-               BT_ENABLE_DEBUG_INFO == 0, initial_plugin_paths);
+               initial_plugin_paths);
        goto end;
 
 error:
@@ -65,7 +71,7 @@ struct bt_config *bt_config_cli_args_create_with_default(int argc,
                const char *argv[], int *retcode)
 {
        return bt_config_cli_args_create(argc, argv, retcode, false, false,
-               BT_ENABLE_DEBUG_INFO == 0, NULL);
+               NULL);
 }
 
 #endif /* BT_SET_DEFAULT_IN_TREE_CONFIGURATION */
This page took 0.023434 seconds and 4 git commands to generate.