summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/wasm-toolchain-lto.c
blob: 216207316f3d74db393d590fd1802728b97539c0 (plain)
1
2
3
4
5
6
// A basic C link command-line with optimization with known OS and LTO enabled.

// RUN: %clang -### -O2 -flto -no-canonical-prefixes -target wasm32-wasi --sysroot=/foo %s 2>&1 \
// RUN:   | FileCheck -check-prefix=LINK_OPT_KNOWN %s
// LINK_OPT_KNOWN: clang{{.*}}" "-cc1" {{.*}} "-o" "[[temp:[^"]*]]"
// LINK_OPT_KNOWN: wasm-ld{{.*}}" "-L/foo/lib/wasm32-wasi/llvm-lto/
OpenPOWER on IntegriCloud