]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Make it possible to configure compiler type msvc
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 23 Jan 2022 15:55:40 +0000 (16:55 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 23 Jan 2022 15:55:40 +0000 (16:55 +0100)
doc/MANUAL.adoc
src/Config.cpp

index acbd3103f7746ce84679e94ae1ffa1ad689786aa..06729bbb4db1c026c794010e952e32f53cf1e9c1 100644 (file)
@@ -507,6 +507,8 @@ _<<Using ccache with other compiler wrappers>>_.
     Clang-based compiler.
 *gcc*::
     GCC-based compiler.
+*msvc*::
+    Microsoft Visual C++ (MSVC).
 *nvcc*::
     NVCC (CUDA) compiler.
 *other*::
index 7e4579625d1118abf283c29bffc6235df50759ca..286bdc2e2ceb83045f3e5a387cbad828d3519389 100644 (file)
@@ -243,6 +243,8 @@ parse_compiler_type(const std::string& value)
     return CompilerType::clang;
   } else if (value == "gcc") {
     return CompilerType::gcc;
+  } else if (value == "msvc") {
+    return CompilerType::msvc;
   } else if (value == "nvcc") {
     return CompilerType::nvcc;
   } else if (value == "other") {