[PATCH] D139765: [NFC] [DirectX backend] copy dxil-dis as exe file on windows

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 20:35:33 PST 2022


python3kgae created this revision.
python3kgae added reviewers: beanz, bob80905, bogner, pow2clk.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Without .exe in the name on windows, the test not work.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139765

Files:
  llvm/tools/dxil-dis/CMakeLists.txt


Index: llvm/tools/dxil-dis/CMakeLists.txt
===================================================================
--- llvm/tools/dxil-dis/CMakeLists.txt
+++ llvm/tools/dxil-dis/CMakeLists.txt
@@ -16,8 +16,13 @@
 endif ()
 
 if (DXIL_DIS)
+  if(WIN32)
+    set(DXIL_DIS_NAME "dxil-dis.exe")
+  else()
+    set(DXIL_DIS_NAME "dxil-dis")
+  endif()
   add_custom_target(dxil-dis
-    COMMAND ${CMAKE_COMMAND} -E ${LLVM_LINK_OR_COPY} "${DXIL_DIS}" "${LLVM_RUNTIME_OUTPUT_INTDIR}/dxil-dis")
+    COMMAND ${CMAKE_COMMAND} -E ${LLVM_LINK_OR_COPY} "${DXIL_DIS}" "${LLVM_RUNTIME_OUTPUT_INTDIR}/${DXIL_DIS_NAME}")
   return()
 endif ()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139765.481822.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221210/ade18285/attachment.bin>


More information about the llvm-commits mailing list