----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64743/#review194211 -----------------------------------------------------------
Is [this -Gy MSVC option](https://docs.microsoft.com/en-us/cpp/build/reference/gy-enable-function-level-linking) equivalent? > You can use the linker option /OPT (Optimizations) to exclude unreferenced > packaged functions from the .exe file. - Andrew Schwartzmeyer On Dec. 19, 2017, 7:50 p.m., James Peach wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/64743/ > ----------------------------------------------------------- > > (Updated Dec. 19, 2017, 7:50 p.m.) > > > Review request for mesos, Andrew Schwartzmeyer and Benjamin Bannier. > > > Bugs: MESOS-8348 > https://issues.apache.org/jira/browse/MESOS-8348 > > > Repository: mesos > > > Description > ------- > > If we tell the compiler to place each function in a separate > section, this allows the linker to garbage collect unused > sections. This significantly decreases the size of the final > build artifacts and provides some modest improvements in build > times. > > This feature is currently only implemented in Linux toolchains, > so we automatically enable it only on Linux. > > > Diffs > ----- > > cmake/CompilationConfigure.cmake dc9dc161dce1c714748bcec2fc15c4fbfbccaec2 > configure.ac 5ffc33a6b9495db64f1ec164ed96f3faea620348 > > > Diff: https://reviews.apache.org/r/64743/diff/1/ > > > Testing > ------- > > make check > > > Thanks, > > James Peach > >
