about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-02-28 19:15:39 +0800
committerGitHub <noreply@github.com>2018-02-28 19:15:39 +0800
commit62f4fe5132b4dd06e1b208ee7138ffc050d247e7 (patch)
treeda4fa0b704329040f4ac514a3fb33ff2c5d48fad /src/rustllvm/RustWrapper.cpp
parentd3fee346a56dfad2ef6956d5679c883e9807cda5 (diff)
parent24666443898c142944b4156c22d04130b9db645b (diff)
downloadrust-62f4fe5132b4dd06e1b208ee7138ffc050d247e7.tar.gz
rust-62f4fe5132b4dd06e1b208ee7138ffc050d247e7.zip
Rollup merge of #48541 - varkor:inlined-main, r=michaelwoerister
Ensure main() always has external linkage

This ensures that the entry function is never elided due to inlining, even with `inline(always)`. Fixes #47783.

There were a couple of possible ways of addressing this issue; I simply picked the one that seemed most direct. A warning could be appropriate, but considering using inlining hints in other places it doesn't apply also throws no warnings, and it seems like an edge case anyway, I haven't added one for now.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions