diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2011-12-15 23:35:08 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2011-12-15 23:35:08 +0000 |
| commit | 06bb7988032509e5208c37c73871e83361f9c0f7 (patch) | |
| tree | 74e0d7e59c3de16610032131eea440868cf6d5f0 /llvm/utils | |
| parent | c8b0c9d8fde1671128981bb75a8c6bc112800da2 (diff) | |
| download | bcm5719-llvm-06bb7988032509e5208c37c73871e83361f9c0f7.tar.gz bcm5719-llvm-06bb7988032509e5208c37c73871e83361f9c0f7.zip | |
build/unittests: Fix llvm-config names for gtest libraries, and bring Makefile
library names in line with those used by CMake.
- Patch by Johannes Obermayr, with tweaks by me.
llvm-svn: 146706
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/llvm-build/llvmbuild/main.py | 6 | ||||
| -rw-r--r-- | llvm/utils/unittest/UnitTestMain/Makefile | 2 | ||||
| -rw-r--r-- | llvm/utils/unittest/googletest/Makefile | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/llvm/utils/llvm-build/llvmbuild/main.py b/llvm/utils/llvm-build/llvmbuild/main.py index 2d7db046212..36bca872e5f 100644 --- a/llvm/utils/llvm-build/llvmbuild/main.py +++ b/llvm/utils/llvm-build/llvmbuild/main.py @@ -329,7 +329,7 @@ subdirectories = %s # Get the library name, or None for LibraryGroups. if c.type_name == 'Library': - library_name = c.get_library_name() + library_name = c.get_prefixed_library_name() else: library_name = None @@ -391,9 +391,7 @@ subdirectories = %s if library_name is None: library_name_as_cstr = '0' else: - # If we had a project level component, we could derive the - # library prefix. - library_name_as_cstr = '"libLLVM%s.a"' % library_name + library_name_as_cstr = '"lib%s.a"' % library_name print >>f, ' { "%s", %s, { %s } },' % ( name, library_name_as_cstr, ', '.join('"%s"' % dep diff --git a/llvm/utils/unittest/UnitTestMain/Makefile b/llvm/utils/unittest/UnitTestMain/Makefile index 30827795aff..7bcb7249504 100644 --- a/llvm/utils/unittest/UnitTestMain/Makefile +++ b/llvm/utils/unittest/UnitTestMain/Makefile @@ -11,7 +11,7 @@ LEVEL = ../../.. include $(LEVEL)/Makefile.config -LIBRARYNAME = UnitTestMain +LIBRARYNAME = gtest_main BUILD_ARCHIVE = 1 REQUIRES_RTTI = 1 diff --git a/llvm/utils/unittest/googletest/Makefile b/llvm/utils/unittest/googletest/Makefile index 21b29ffc2c3..22c8f36fccb 100644 --- a/llvm/utils/unittest/googletest/Makefile +++ b/llvm/utils/unittest/googletest/Makefile @@ -11,7 +11,7 @@ LEVEL := ../../.. include $(LEVEL)/Makefile.config -LIBRARYNAME = GoogleTest +LIBRARYNAME = gtest BUILD_ARCHIVE = 1 REQUIRES_RTTI = 1 |

