The former option bases the filename on the output name, e.g. if the
link output is a.exe, the map will be written to a.exe. This the
behaviour of link.exe's /MAP option and is useful for creating a map
file of each executable when building a large project.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Oh, and what do you think about just spelling the option /map, like for link.exe? Maybe the output format isn't exactly the same, but the functionality is.
Comment Actions
IIRC, the reason why I chose a different name than /map is because the output format is different. If some build system is using /map, it is likely that it reads a result file afterwards using a script, so I chose to fail early. In that sense, I think keeping the different name still makes sense.
COFF/Driver.cpp | ||
---|---|---|
775 | Pass Args and call getLastArg in getMapFile. Since Config is a global variable, you don't need to pass it to the function. |
Pass Args and call getLastArg in getMapFile. Since Config is a global variable, you don't need to pass it to the function.