[PATCH] [sanitizer][MIPS] Add --target flag for MIPS32

Alexey Samsonov vonosmas at gmail.com
Fri Apr 24 11:27:02 PDT 2015


REPOSITORY
  rL LLVM

================
Comment at: cmake/config-ix.cmake:187
@@ -186,3 +186,3 @@
       # regex for mipsel, mips64el
-      test_target_arch(mipsel "" "-mips32r2")
-      test_target_arch(mips64el "" "-mips64r2 -mabi=n64")
+      test_target_arch(mipsel "" "-mips32r2\t--target=mipsel-linux-gnu")
+      test_target_arch(mips64el "" "-mips64r2\t-mabi=n64")
----------------
sagar wrote:
> I used the tab escape sequence here because while generating asan tests I get the following error :
> 
> >Scanning dependencies of target Asan-mips64el-with-calls-Noinst-Test
> >[ 76%] Generating ASAN_NOINST_TEST_OBJECTS.gtest-all.cc.mips64el-with-calls.o
> >clang-3.7: error: unknown argument: '-mips64r2 -mabi=n64'
> 
Please test if you can provide multiple flags to `test_target_arch` function:
  test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu")

If it doesn't work, we should fix it.

http://reviews.llvm.org/D9249

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list