clang/test/Driver/baremetal-ld.c
raw| 1 | // RUN: %clang -### --target=armv7-unknown-none-eabi -mcpu=cortex-m4 --sysroot= -fuse-ld=ld %s 2>&1 | FileCheck --check-prefix=NOLTO %s |
| 2 | // NOLTO: {{".*ld.*"}} {{.*}} |
| 3 | // NOLTO-NOT: "-plugin-opt=mcpu" |
| 4 | |
| 5 | // RUN: %clang -### --target=armv7-unknown-none-eabi -mcpu=cortex-m4 --sysroot= -fuse-ld=ld -flto -O3 %s 2>&1 | FileCheck --check-prefix=LTO %s |
| 6 | // LTO: {{".*ld.*"}} {{.*}} "-plugin-opt=mcpu=cortex-m4" "-plugin-opt=O3" |