Skip to content

Commit f581b2f

Browse files
committed
Enable arm error handling abi
1 parent e67448d commit f581b2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rustllvm/RustWrapper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "llvm/ADT/DenseSet.h"
2828
#include "llvm/Assembly/Parser.h"
2929
#include "llvm/Assembly/PrintModulePass.h"
30+
#include "llvm/Support/CommandLine.h"
3031
#include "llvm/Support/FormattedStream.h"
3132
#include "llvm/Support/Timer.h"
3233
#include "llvm/Support/raw_ostream.h"
@@ -428,6 +429,10 @@ LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
428429

429430
LLVMRustInitializeTargets();
430431

432+
int argc = 2;
433+
const char* argv[] = {"rustc", "-arm-enable-ehabi"};
434+
cl::ParseCommandLineOptions(argc, argv);
435+
431436
TargetOptions Options;
432437
Options.NoFramePointerElim = true;
433438
Options.EnableSegmentedStacks = EnableSegmentedStacks;

0 commit comments

Comments
 (0)