about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-28 20:32:56 +0000
committerbors <bors@rust-lang.org>2017-01-28 20:32:56 +0000
commit1491e0425911806f2612f05ee8caf21666447128 (patch)
treeea70520dbf0d73ef2fa82d91074776160517b8bb /src/test/incremental/thinlto
parentc81c1d6a41babf7e34120625727211cad7b40b87 (diff)
parentab21314c3fbf093c92123abee62101d15846c1e2 (diff)
downloadrust-1491e0425911806f2612f05ee8caf21666447128.tar.gz
rust-1491e0425911806f2612f05ee8caf21666447128.zip
Auto merge of #39234 - segevfiner:fix-backtraces-on-windows-gnu, r=petrochenkov
Make backtraces work on Windows GNU targets again.

This is done by adding a function that can return a filename
to pass to backtrace_create_state. The filename is obtained in
a safe way by first getting the filename, locking the file so it can't
be moved, and then getting the filename again and making sure it's the same.

See: https://github.com/rust-lang/rust/pull/37359#issuecomment-260123399
Issue: #33985

Note though that this isn't that pretty...

I had to implement a `WideCharToMultiByte` wrapper function to convert to the ANSI code page. This will work better than only allowing ASCII provided that the ANSI code page is set to the user's local language, which is often the case.

Also, please make sure that I didn't break the Unix build.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions