github.com/searKing/golang/go@v1.2.117/runtime/cgosymbolizer/cgo_boost_addr2line.go (about)

     1  // Copyright 2021 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build BOOST_STACKTRACE_USE_ADDR2LINE
     6  // +build BOOST_STACKTRACE_USE_ADDR2LINE
     7  
     8  package cgosymbolizer
     9  
    10  /*
    11  #cgo windows CXXFLAGS:
    12  #cgo !windows CXXFLAGS: -DBOOST_STACKTRACE_USE_ADDR2LINE
    13  #cgo !windows LDFLAGS: -ldl -rdynamic
    14  */
    15  import "C"
    16  
    17  // https://www.boost.org/doc/libs/develop/doc/html/stacktrace/configuration_and_build.html