www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22568] New: -target option does nothing in compilation

https://issues.dlang.org/show_bug.cgi?id=22568

          Issue ID: 22568
           Summary: -target option does nothing in compilation
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

i.e:
---
$ dmd -c test.d -target=x64-windows-msvc
$ file test.o 
test.o: ELF 64-bit LSB relocatable, x86-64, version 1 (GNU/Linux), not stripped
---

When targetting MSVC, one would expect a PE/COFF object file.

--
Dec 03 2021