Skip to content

Commit c5b4e98

Browse files
author
Alex Denisov
committed
Disable terminfo and rename the library
1 parent 417bb68 commit c5b4e98

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pkg_swift_llvm.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def getoptions():
5757
target_link_libraries(dummy PRIVATE {" ".join(DEPLIST)})
5858
"""
5959

60-
EXPORTED_LIB = "swiftAndLlvmSupport"
60+
EXPORTED_LIB = "CodeQLSwiftFrontendTool"
6161

6262
CMAKELISTS_EXPORTED_FMT = """
6363
add_library({exported} INTERFACE)
@@ -72,7 +72,7 @@ def getoptions():
7272
set(EXT "a")
7373
endif()
7474
75-
set (SwiftLLVMWrapperLib libswiftAndLlvmSupportReal.${{EXT}})
75+
set (SwiftLLVMWrapperLib libCodeQLSwiftFrontendTool.${{EXT}})
7676
set (input ${{CMAKE_CURRENT_LIST_DIR}}/${{SwiftLLVMWrapperLib}})
7777
set (output ${{CMAKE_BINARY_DIR}}/${{SwiftLLVMWrapperLib}})
7878
@@ -188,7 +188,7 @@ def get_tgt(tgt, filename):
188188

189189

190190
def create_static_lib(tgt, libs):
191-
tgt = get_tgt(tgt, f"lib{EXPORTED_LIB}Real.a")
191+
tgt = get_tgt(tgt, f"lib{EXPORTED_LIB}.a")
192192
print(f"packaging {tgt.name}")
193193
if sys.platform == 'linux':
194194
includedlibs = "\n".join(f"addlib {l}" for l in libs.archive + libs.static)
@@ -209,7 +209,7 @@ def create_shared_lib(tgt, libs):
209209
ext = "so"
210210
if sys.platform != 'linux':
211211
ext = "dylib"
212-
libname = f"lib{EXPORTED_LIB}Real.{ext}"
212+
libname = f"lib{EXPORTED_LIB}.{ext}"
213213
tgt = get_tgt(tgt, libname)
214214
print(f"packaging {libname}")
215215
compiler = os.environ.get("CC", "clang")
@@ -321,3 +321,4 @@ def main(opts):
321321

322322
if __name__ == "__main__":
323323
main(getoptions())
324+

swift-build-presets

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ release
33
build-subdir=codeql
44

55
llvm-targets-to-build=X86;ARM;AArch64
6-
llvm-cmake-options=-DLLVM_ENABLE_ZLIB=OFF -DLLVM_ENABLE_TERMINFO=OFF
6+
llvm-cmake-options=-DLLVM_ENABLE_TERMINFO=OFF
77

88
skip-ios
99
skip-tvos

0 commit comments

Comments
 (0)