zezer3 / cmaked2

Automatically exported from code.google.com/p/cmaked2
0 stars 0 forks source link

Cmaked fails under windows due to dmd's OPTLINK #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Under Windows, OPTLINK (8.00.2) gets confused when an object file has a 
compound extension with than one '.' in the name, as in foo.d.o. For such 
files, OPTLINK reports "Error 2: File Not Found foo.d". Cmake always generates 
object files with a compound extension.

The D mailing list suggests waiting for a fix that will come with the rewrite 
of OPTLINK in C (was assembly).

Original issue reported on code.google.com by kingshiz...@gmail.com on 17 Aug 2010 at 3:45

GoogleCodeExporter commented 9 years ago
CMake supports a mode without the double extensions and '.' names for objects.
Add SET(CMAKE_D_OUTPUT_EXTENSION_REPLACE TRUE)
to CMakeDInformation.cmake

This then will produce foo.obj from foo.d (for Windows), however I then hit 
another issue (the file doesn't appear to be produced) which I'm looking into.

Deano

Original comment by dean.calver@gmail.com on 3 Sep 2010 at 10:48

GoogleCodeExporter commented 9 years ago
Attached it a CMakeDInformation.cmake for windows DMD
This passes the D compile self check for NMake and will generate makefiles, 
however these won't pass the tests yet.
Also doesn't generate valid solutions yet, fails the self check.

Original comment by dean.calver@gmail.com on 3 Sep 2010 at 11:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Dean!  I asked about the extension problem on the CMake list, but never 
got an answer like yours.  Thanks also for the file, I'll have a look at it.

Original comment by kingshiz...@gmail.com on 4 Sep 2010 at 7:20

GoogleCodeExporter commented 9 years ago
Hey
New CMakeDInformation.cmake and Windows-dmd.cmake
Basic app generation working with default (Debug) settings, lib generation not 
working yet (linker errors).
Passes tests 1,2,6,7 all those without using a library.

Also made Windows-dmd.cmake look like the linux version, for ease of diffing 
between the two.

Next stop libraries.

Deano

Original comment by dean.calver@gmail.com on 4 Sep 2010 at 11:53

Attachments:

GoogleCodeExporter commented 9 years ago
BTW made a clone of the repo, so easier for you to diff changes and import 
valid ones into main line branch as I get various things working :)

Deano

Original comment by dean.calver@gmail.com on 4 Sep 2010 at 12:17

GoogleCodeExporter commented 9 years ago
Thanks for this great progress.  I added you as a committer.

Original comment by kingshiz...@gmail.com on 4 Sep 2010 at 6:24

GoogleCodeExporter commented 9 years ago
Good news, just got full passes for NMAKE DMD debug under windows :)

I'll try commiting it here from my clone, bare with me first time HG user :D

Original comment by dean.calver@gmail.com on 4 Sep 2010 at 6:30

GoogleCodeExporter commented 9 years ago
One of our few wiki pages has some setup tips for hg committers.  Let me know 
if it gives you any headaches.

Original comment by kingshiz...@gmail.com on 4 Sep 2010 at 7:06

GoogleCodeExporter commented 9 years ago
Thanks kingshizzle :)
Code is pushed into the repo

Original comment by dean.calver@gmail.com on 4 Sep 2010 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by jens.k.mueller@gmail.com on 3 Nov 2010 at 8:39