Skip to content
Snippets Groups Projects
Commit 9cef8874 authored by Michael J. Spencer's avatar Michael J. Spencer
Browse files

Fix MSVC build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143770 91177308-0d34-0410-b5e6-96231b3b80d8
parent 22508f41
No related branches found
No related tags found
No related merge requests found
......@@ -21,5 +21,13 @@ add_clang_library(clangDriver
Types.cpp
)
IF(MSVC)
get_target_property(NON_ANSI_COMPILE_FLAGS clangDriver COMPILE_FLAGS)
string(REPLACE /Za
"" NON_ANSI_COMPILE_FLAGS
${NON_ANSI_COMPILE_FLAGS})
set_target_properties(clangDriver PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
ENDIF(MSVC)
add_dependencies(clangDriver ClangAttrList ClangDiagnosticDriver
ClangDriverOptions ClangCC1Options ClangCC1AsOptions)
......@@ -44,7 +44,9 @@
// environment.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#include <Windows.h>
#undef min
#undef max
#endif
using namespace clang::driver;
......@@ -2182,7 +2184,7 @@ static bool getVisualStudioDir(std::string &path) {
path = vsIDEInstallDir;
return true;
}
if (hasVCExpressDir && vsExpressIDEInstallDir[0]) {
char *p = (char*)strstr(vsExpressIDEInstallDir, "\\Common7\\IDE");
if (p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment