]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove last usage of legacy args_extend function
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 7 May 2020 16:56:07 +0000 (18:56 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 7 May 2020 16:56:07 +0000 (18:56 +0200)
src/ccache.cpp

index 3b75c3bd3b260a840cc7fdaa8c9efe137adaa184..ce3db0f1a354eed973a2476a7d0733efab066563 100644 (file)
@@ -1051,7 +1051,7 @@ to_cache(Context& ctx,
     // mode.
     Args depend_mode_args = ctx.orig_args;
     args_strip(depend_mode_args, "--ccache-");
-    args_extend(depend_mode_args, depend_extra_args);
+    depend_mode_args.push_back(depend_extra_args);
     add_prefix(ctx, depend_mode_args, ctx.config.prefix_command());
 
     ctx.time_of_compilation = time(nullptr);
@@ -2402,7 +2402,7 @@ do_cache_compilation(Context& ctx, const char* const* argv)
                   debug_text_file);
 
   Args args_to_hash = preprocessor_args;
-  args_extend(args_to_hash, extra_args_to_hash);
+  args_to_hash.push_back(extra_args_to_hash);
 
   bool put_result_in_manifest = false;
   struct digest* result_name = nullptr;