]> granicus.if.org Git - clang/commit
[CUDA] Don't pass top-level -march down to device cc1 or ptxas.
authorJustin Lebar <jlebar@google.com>
Wed, 15 Jun 2016 23:46:11 +0000 (23:46 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 15 Jun 2016 23:46:11 +0000 (23:46 +0000)
commit9cf8a9741563831ff85ba580147a9bb916ccf78f
tree294d74e2d7d9dab35f7ede22b3782724bf36b6e9
parent405c8b66be09d0cbbc09a705ee83dfe0f8224fb2
[CUDA] Don't pass top-level -march down to device cc1 or ptxas.

Summary:
Previously if you did e.g.

  $ clang -march=haswell -x cuda foo.cu

we would pass "-march=haswell -march=sm_20" down to the ptxas tool.
This causes it to assert, and rightly so!

Reviewers: tra

Subscribers: cfe-commits, echristo

Differential Revision: http://reviews.llvm.org/D21419

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
test/Driver/cuda-march.cu [new file with mode: 0644]