Skip to content

Commit

Permalink
Make ExtractDMDSystemLinker.cmake compatible with -target
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanEngelen authored Jul 6, 2023
1 parent d4f2bed commit b15c2c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Modules/ExtractDMDSystemLinker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ separate_arguments(linker_line)
list(GET linker_line 0 D_LINKER_COMMAND)
list(REMOVE_AT linker_line 0)

# Fixup "-target triple" argument, which would be turned into "-target;triple" by `separate_arguments`. Replace ";" with "=".
string(REGEX REPLACE ";-target;" ";--target=" linker_line "${linker_line}")

if("${D_COMPILER_ID}" STREQUAL "GDMD")
# Filter linker arguments for those we know can be safely reused
set(D_LINKER_ARGS)
Expand Down

0 comments on commit b15c2c8

Please sign in to comment.