From: Joel Rosdahl Date: Sun, 23 Jan 2022 15:55:40 +0000 (+0100) Subject: feat: Make it possible to configure compiler type msvc X-Git-Tag: v4.6~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1672be83937451717b39d54653b82b898e957e67;p=thirdparty%2Fccache.git feat: Make it possible to configure compiler type msvc --- diff --git a/doc/MANUAL.adoc b/doc/MANUAL.adoc index acbd3103f..06729bbb4 100644 --- a/doc/MANUAL.adoc +++ b/doc/MANUAL.adoc @@ -507,6 +507,8 @@ _<>_. Clang-based compiler. *gcc*:: GCC-based compiler. +*msvc*:: + Microsoft Visual C++ (MSVC). *nvcc*:: NVCC (CUDA) compiler. *other*:: diff --git a/src/Config.cpp b/src/Config.cpp index 7e4579625..286bdc2e2 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -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") {