[tor-bugs] #7309 [Tor]: nmake script wrong main build target output filename

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Nov 4 12:24:44 UTC 2012


#7309: nmake script wrong main build target output filename
-----------------------+----------------------------------------------------
 Reporter:  ultramage  |          Owner:     
     Type:  defect     |         Status:  new
 Priority:  minor      |      Milestone:     
Component:  Tor        |        Version:     
 Keywords:  msvc       |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------
 In src/or/Makefile.nmake build target "tor.exe", the commandline does not
 include an output filename parameter. MSVC's cl.exe does a strange thing
 and guesses the output filename based on the last thing on the list, which
 in this case is tor_main.obj. This means that the build output is
 tor_main.exe, not tor.exe.

 To specify an output filename, add /Fe followed by the filename - without
 a space inbetween - somewhere into the commandline. In this case it would
 be /Fetor.exe.

 PS: According to google search nmake supports the standard make token for
 'rule target', implying that /Fe$@ (for compiler) and /out$@ (for linker)
 could work and might be useful in a future cleanup.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7309>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list