HomePhabricator

[CUDA] Don't pass top-level -march down to device cc1 or ptxas.

Description

[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

Details

Committed
jlebarJun 15 2016, 4:46 PM
Differential Revision
D21419: [CUDA] Don't pass top-level -march down to device cc1 or ptxas.
Parents
rL272856: Fix sanitizer-ld test.
Branches
Unknown
Tags
Unknown