[llvm-branch-commits] [cfe-branch] r113302 - /cfe/branches/Apple/lemur-IB/Makefile
Daniel Dunbar
daniel at zuster.org
Tue Sep 7 15:56:32 PDT 2010
Author: ddunbar
Date: Tue Sep 7 17:56:32 2010
New Revision: 113302
URL: http://llvm.org/viewvc/llvm-project?rev=113302&view=rev
Log:
Switch to using msbuild and VS10, as an experiment.
Modified:
cfe/branches/Apple/lemur-IB/Makefile
Modified: cfe/branches/Apple/lemur-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/lemur-IB/Makefile?rev=113302&r1=113301&r2=113302&view=diff
==============================================================================
--- cfe/branches/Apple/lemur-IB/Makefile (original)
+++ cfe/branches/Apple/lemur-IB/Makefile Tue Sep 7 17:56:32 2010
@@ -12,7 +12,7 @@
CMAKE := cmake
endif
-VCBUILD := $(VS90COMNTOOLS)\..\..\VC\VCPackages\vcbuild
+MSBUILD := msbuild.exe
JOBS := $(NUMBER_OF_PROCESSORS)
ifeq ($(ENABLE_TESTS),1)
@@ -42,7 +42,7 @@
# Override CMake default libraries list, which is much larger than we need.
CXXLIBS := kernel32.lib user32.lib advapi32.lib
-TARGET := Release|Win32
+TARGET := /p:Configuration=Release /p:Platform=Win32
all:: help
@@ -68,17 +68,19 @@
"$(CMAKE)" "-DCMAKE_INSTALL_PREFIX:=$(STAGEROOT)" \
-DLLVM_TARGETS_TO_BUILD:=X86 \
"-DLLVM_USE_CRT_RELEASE:=$(MSVC_CRT)" \
+ "-DLLVM_USE_CRT_MINSIZEREL:=$(MSVC_CRT)" \
+ "-DLLVM_USE_CRT_RELWITHDEBINFO:=$(MSVC_CRT)" \
"-DCMAKE_CXX_STANDARD_LIBRARIES:STRING=$(CXXLIBS)" \
- -G "Visual Studio 9 2008" \
+ -G "Visual Studio 10" \
"$(SRCROOT)\src"
# FIXME: Only build clang.
build: configure
- "$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\LLVM.sln "$(TARGET)"
- "$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\INSTALL.vcproj "$(TARGET)"
+ "$(MSBUILD)" /maxcpucount:$(JOBS) "$(OBJROOT)"\LLVM.sln $(TARGET)
+ "$(MSBUILD)" "$(OBJROOT)"\INSTALL.vcxproj $(TARGET)
test: build
- "$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\tools\clang\test\clang-test.vcproj "$(TARGET)"
+ "$(MSBUILD)" "$(OBJROOT)"\tools\clang\test\clang-test.vcxproj $(TARGET)
install: $(BUILD_TARGET)
"$(CMAKE)" -E make_directory "$(BINDEST)"
More information about the llvm-branch-commits
mailing list