File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ include(BuildDExecutable)
3131
3232find_package (LLVM 18.0 REQUIRED
3333 all -targets analysis asmparser asmprinter bitreader bitwriter codegen core
34- debuginfodwarf debuginfomsf debuginfopdb demangle frontendhlsl
34+ debuginfodwarf debuginfomsf debuginfopdb demangle
3535 instcombine ipo instrumentation irreader libdriver linker lto mc
3636 mcdisassembler mcparser objcarcopts object option profiledata scalaropts
3737 selectiondag support tablegen target transformutils vectorize
@@ -150,7 +150,9 @@ if(MSVC)
150150 endif ()
151151 endif ()
152152
153- append ("-L/NODEFAULTLIB:libucrt -L/NODEFAULTLIB:libcmt -L/NODEFAULTLIB:libvcruntime -Lmsvcrt.lib -Lucrt.lib -Lvcruntime.lib -Llegacy_stdio_definitions.lib" DFLAGS_BASE )
153+ if (${D_COMPILER_ID} STREQUAL "DigitalMars" AND (MSVC_VERSION GREATER 1800)) # VS 2015+
154+ append ("-Llegacy_stdio_definitions.lib" DFLAGS_BASE )
155+ endif ()
154156
155157 set (llvm_ob_flag)
156158 string (REGEX MATCH "/Ob[0-2]" llvm_ob_flag "${LLVM_CXXFLAGS} " )
You can’t perform that action at this time.
0 commit comments