Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 340
    • Issues 340
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #7309
Closed
Open
Issue created Nov 04, 2012 by Trac@tracbot

nmake script wrong main build target output filename

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.

Trac:
Username: ultramage

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking