diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-11-21 16:37:10 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-11-21 16:37:10 +0100 |
commit | b8984caf5a7f2b622b031486f4d99e28d0114e57 (patch) | |
tree | fb29af3c7ba953bb59de1ccc12477b222170d8c8 /ufo/ufo-resources.c | |
parent | 40dfbd00ae5dcb775b5a812c5449abeae7584697 (diff) |
Fix #133: output build flag string for each device
Diffstat (limited to 'ufo/ufo-resources.c')
-rw-r--r-- | ufo/ufo-resources.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ufo/ufo-resources.c b/ufo/ufo-resources.c index 43c62f2..6e49395 100644 --- a/ufo/ufo-resources.c +++ b/ufo/ufo-resources.c @@ -616,6 +616,7 @@ add_program_from_source (UfoResourcesPrivate *priv, build_options = g_string_new (priv->build_opts->str); opt_append_device_options (build_options, priv, i); opt_append_include_paths (build_options, priv); + if (options) { gchar *stripped_opts = g_strstrip (g_strdup (options)); g_string_append (build_options, " "); @@ -630,16 +631,16 @@ add_program_from_source (UfoResourcesPrivate *priv, return NULL; } + if (options) + g_debug ("INFO Built with `%s %s' for device %i", build_options->str, options, i); + else + g_debug ("INFO Built with `%s' for device %i", build_options->str, i); + g_string_free (build_options, TRUE); } g_timer_stop (timer); - - if (options) - g_debug ("INFO Built with `%s %s' for %i devices in %3.5fs", priv->build_opts->str, options, priv->n_devices, g_timer_elapsed (timer, NULL)); - else - g_debug ("INFO Built with `%s' for %i devices in %3.5fs", priv->build_opts->str, priv->n_devices, g_timer_elapsed (timer, NULL)); - + g_debug ("INFO Built program for %i devices in %3.5fs", priv->n_devices, g_timer_elapsed (timer, NULL)); g_timer_destroy (timer); g_hash_table_insert (priv->programs, g_strdup (source), program); |