We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67448d commit f581b2fCopy full SHA for f581b2f
src/rustllvm/RustWrapper.cpp
@@ -27,6 +27,7 @@
27
#include "llvm/ADT/DenseSet.h"
28
#include "llvm/Assembly/Parser.h"
29
#include "llvm/Assembly/PrintModulePass.h"
30
+#include "llvm/Support/CommandLine.h"
31
#include "llvm/Support/FormattedStream.h"
32
#include "llvm/Support/Timer.h"
33
#include "llvm/Support/raw_ostream.h"
@@ -428,6 +429,10 @@ LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
428
429
430
LLVMRustInitializeTargets();
431
432
+ int argc = 2;
433
+ const char* argv[] = {"rustc", "-arm-enable-ehabi"};
434
+ cl::ParseCommandLineOptions(argc, argv);
435
+
436
TargetOptions Options;
437
Options.NoFramePointerElim = true;
438
Options.EnableSegmentedStacks = EnableSegmentedStacks;
0 commit comments