llvmc: Forward -march/-mcpu/-mtune to as & ld.
authorMikhail Glushenkov <foldr@codedgers.com>
Wed, 15 Dec 2010 01:22:05 +0000 (01:22 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Wed, 15 Dec 2010 01:22:05 +0000 (01:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121823 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/src/Base.td.in

index efb259fbe0196516061efe6ac2759cfff7f2ab1a..150829da56b295210139cf0d82acb24ad92f01ae 100644 (file)
@@ -276,6 +276,9 @@ def llvm_gcc_assembler : Tool<
           (switch_on "c"), (stop_compilation),
           (not_empty "arch"), (forward "arch"),
           (not_empty "Xassembler"), (forward "Xassembler"),
+          (not_empty "march"), (forward "march"),
+          (not_empty "mcpu"), (forward "mcpu"),
+          (not_empty "mtune"), (forward "mtune"),
           (switch_on "m32"), (forward "m32"),
           (switch_on "m64"), (forward "m64"),
           (not_empty "Wa,"), (forward "Wa,")))
@@ -321,6 +324,9 @@ class llvm_gcc_based_linker <string cmd, dag on_empty> : Tool<
           (not_empty "framework"), (forward "framework"),
           (not_empty "weak_framework"), (forward "weak_framework"),
           (not_empty "filelist"), (forward "filelist"),
+          (not_empty "march"), (forward "march"),
+          (not_empty "mcpu"), (forward "mcpu"),
+          (not_empty "mtune"), (forward "mtune"),
           (switch_on "m32"), (forward "m32"),
           (switch_on "m64"), (forward "m64"),
           (not_empty "l"), (forward "l"),