github.com/searKing/golang/go@v1.2.117/runtime/cgosymbolizer/cgo_boost_backtrace.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_BACKTRACE 6 // +build BOOST_STACKTRACE_USE_BACKTRACE 7 8 package cgosymbolizer 9 10 /* 11 #cgo windows CXXFLAGS: 12 #cgo !windows CXXFLAGS: -DBOOST_STACKTRACE_USE_BACKTRACE 13 #cgo !windows LDFLAGS: -ldl -lbacktrace -rdynamic 14 */ 15 import "C" 16 17 // https://www.boost.org/doc/libs/develop/doc/html/stacktrace/configuration_and_build.html