Skip to content

Commit

Permalink
compile swift demangler
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Aug 5, 2024
1 parent 29ae348 commit 7d4a1bb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ if (WIN32)
endif()

include_directories(third_party/llvm/include)
include_directories(third_party/swift/include)
add_definitions(
-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1
-DSWIFT_SUPPORT_OLD_MANGLING=1
-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1
)
add_executable(demumble
demumble.cc
third_party/llvm/lib/Demangle/Demangle.cpp
Expand All @@ -47,6 +53,17 @@ add_executable(demumble
third_party/llvm/lib/Demangle/MicrosoftDemangle.cpp
third_party/llvm/lib/Demangle/MicrosoftDemangleNodes.cpp
third_party/llvm/lib/Demangle/RustDemangle.cpp
third_party/swift/lib/Demangling/Context.cpp
third_party/swift/lib/Demangling/CrashReporter.cpp
third_party/swift/lib/Demangling/Demangler.cpp
third_party/swift/lib/Demangling/Errors.cpp
third_party/swift/lib/Demangling/ManglingUtils.cpp
third_party/swift/lib/Demangling/NodeDumper.cpp
third_party/swift/lib/Demangling/NodePrinter.cpp
third_party/swift/lib/Demangling/OldDemangler.cpp
third_party/swift/lib/Demangling/OldRemangler.cpp
third_party/swift/lib/Demangling/Punycode.cpp
third_party/swift/lib/Demangling/Remangler.cpp
)
set_target_properties(demumble PROPERTIES CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON)

0 comments on commit 7d4a1bb

Please sign in to comment.