Skip to content

Commit

Permalink
Merge pull request #427 from jmittert/DiffLib
Browse files Browse the repository at this point in the history
Rename llbuild.dll to libllbuild.dll on Windows
  • Loading branch information
dmbryson authored Feb 8, 2019
2 parents f51d824 + bb663aa commit 4f77fc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion products/libllbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ set(DEPENDENCIES
llvmSupport
sqlite3)

if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(LIBLLBUILD_NAME libllbuild)
else()
set(LIBLLBUILD_NAME llbuild)
endif()

if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
list(APPEND DEPENDENCIES curses)
endif()

add_llbuild_library(libllbuild
${SOURCES}
SHARED
OUTPUT_NAME llbuild)
OUTPUT_NAME ${LIBLLBUILD_NAME})

set_property(TARGET libllbuild PROPERTY MACOSX_RPATH ON)

Expand Down
2 changes: 1 addition & 1 deletion tests/Examples/buildsystem-capi.llbuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Check that the BuildSystem C API example builds and runs correctly.
#
# RUN: cc -o %t.exe %{srcroot}/examples/c-api/buildsystem/main.c -I %{srcroot}/products/libllbuild/include -lllbuild -L %{llbuild-lib-dir} -Werror
# RUN: cc -o %t.exe %{srcroot}/examples/c-api/buildsystem/main.c -I %{srcroot}/products/libllbuild/include -l%{libllbuild} -L %{llbuild-lib-dir} -Werror
# RUN: env LD_LIBRARY_PATH=%{llbuild-lib-dir} %t.exe %s > %t.out
# RUN: %{FileCheck} %s --input-file %t.out
#
Expand Down
1 change: 1 addition & 0 deletions tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ config.substitutions.append( ('%{llbuild-tools-dir}', llbuild_tools_dir) )
config.substitutions.append( ('%{srcroot}', llbuild_src_root) )
config.substitutions.append( ('%{swiftc-platform-flags}', "" if not config.osx_sysroot else "-sdk " + config.osx_sysroot) )
config.substitutions.append( ('%{build-dir}', llbuild_obj_root) )
config.substitutions.append( ('%{libllbuild}', 'libllbuild' if platform.system() == 'Windows' else 'llbuild') )

###

Expand Down

0 comments on commit 4f77fc4

Please sign in to comment.