aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/vcpkg_System.h
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 16:55:59 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 17:04:29 -0800
commit6860b461a1fc3a910cb64b0b55402685043237dd (patch)
treea839eb60b921306dc334f35f1e69505ab2cf3e3e /toolsrc/include/vcpkg_System.h
parent5f39474a17aefc754dcba7d07b2c6ec8a03fc07c (diff)
downloadvcpkg-6860b461a1fc3a910cb64b0b55402685043237dd.tar.gz
vcpkg-6860b461a1fc3a910cb64b0b55402685043237dd.zip
Introduce System::cmd_execute_clean() for sanitized executions
Diffstat (limited to 'toolsrc/include/vcpkg_System.h')
-rw-r--r--toolsrc/include/vcpkg_System.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h
index ecb98aba7..71caeed5e 100644
--- a/toolsrc/include/vcpkg_System.h
+++ b/toolsrc/include/vcpkg_System.h
@@ -17,6 +17,13 @@ namespace vcpkg::System
std::string output;
};
+ int cmd_execute_clean(const wchar_t* cmd_line);
+
+ inline int cmd_execute_clean(const std::wstring& cmd_line)
+ {
+ return cmd_execute_clean(cmd_line.c_str());
+ }
+
int cmd_execute(const wchar_t* cmd_line);
inline int cmd_execute(const std::wstring& cmd_line)