Backtrace property with swift


(Leo) #1

Hi there, i am interested to know how is backtrace ( enabled in Swift. From what i understand, flag like -rdynamic or --export-dynamic is need to pass to the linker when building swift/swiftc. However, when I look for those flags in the CMake files within swift source directory and the file in the building directory , i could not find any.

I wonder what makes backtrace work without those flags being passed. Further, where should i pass those flags if i need to?