Skip to content

Commit

Permalink
Fix to allow XLScc to handle asm declarations on ARM.
Browse files Browse the repository at this point in the history
- asm contains IR, without this flag invalid constraint errors occur.

- for ARM based Mac use the flag --host_macos_minimum_os

PiperOrigin-RevId: 710522831
  • Loading branch information
JoshVarga authored and copybara-github committed Dec 29, 2024
1 parent 7769c85 commit 3253d04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xls/contrib/xlscc/cc_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,8 @@ void LibToolThread::Run() {
argv.emplace_back("-Wno-c++11-narrowing");
argv.emplace_back("-Wno-conversion");
argv.emplace_back("-Wno-missing-template-arg-list-after-template-kw");
// Needed for ASM to work properly on ARM
argv.emplace_back("--target=x86_64-linux-android");

llvm::IntrusiveRefCntPtr<clang::FileManager> libtool_files;

Expand Down

0 comments on commit 3253d04

Please sign in to comment.