]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove last usage of legacy args_strip function
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 7 May 2020 17:13:46 +0000 (19:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 7 May 2020 17:13:46 +0000 (19:13 +0200)
src/ccache.cpp

index b4ada3d03138a05c58871ee16981eb24289d7522..ae629494e2ca6655ac33b93ee952754e0095ed48 100644 (file)
@@ -1050,7 +1050,7 @@ to_cache(Context& ctx,
     // Use the original arguments (including dependency options) in depend
     // mode.
     Args depend_mode_args = ctx.orig_args;
-    args_strip(depend_mode_args, "--ccache-");
+    depend_mode_args.erase_with_prefix("--ccache-");
     depend_mode_args.push_back(depend_extra_args);
     add_prefix(ctx, depend_mode_args, ctx.config.prefix_command());
 
@@ -2261,7 +2261,7 @@ cache_compilation(int argc, const char* const* argv)
 
     assert(!ctx.orig_args.empty());
 
-    args_strip(ctx.orig_args, "--ccache-");
+    ctx.orig_args.erase_with_prefix("--ccache-");
     add_prefix(ctx, ctx.orig_args, ctx.config.prefix_command());
 
     cc_log("Failed; falling back to running the real compiler");