Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    eae14421
    DRTVWR-418: Another attempt to generate Mac debug symbols. · eae14421
    Nat Goodspeed authored
    The viewer's 00-COMPILE-LINK-RUN.txt recommends passing -gdwarf-2 to the Mac
    compiler, and so we've been doing ever since before the viewer-build-variables
    repo was engaged. Now we discover that when CMake sees -gdwarf-2, it removes
    the -g switch entirely. It also removes it when you pass plain -g. Only when
    you pass -gdwarf-with-dsym or just -gdwarf does CMake pass plain -g to the
    compiler. Change -gdwarf-2, if specified, to -gdwarf so we at least get -g.
    eae14421
    History
    DRTVWR-418: Another attempt to generate Mac debug symbols.
    Nat Goodspeed authored
    The viewer's 00-COMPILE-LINK-RUN.txt recommends passing -gdwarf-2 to the Mac
    compiler, and so we've been doing ever since before the viewer-build-variables
    repo was engaged. Now we discover that when CMake sees -gdwarf-2, it removes
    the -g switch entirely. It also removes it when you pass plain -g. Only when
    you pass -gdwarf-with-dsym or just -gdwarf does CMake pass plain -g to the
    compiler. Change -gdwarf-2, if specified, to -gdwarf so we at least get -g.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.