mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
2b9349db38
The /Brepro flag controls whether or not the compiler should embed timestamps into the object file. Object files which do not embed timestamps are not suitable for incremental linking but are suitable for hermetic build systems and staged self-hosts of clang. A normal clang spelling of this flag has been added, -mincremental-linker-compatible. llvm-svn: 256204
18 lines
1.2 KiB
C
18 lines
1.2 KiB
C
// RUN: %clang '-###' %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -mincremental-linker-compatible 2>&1 | FileCheck %s --check-prefix=TEST1
|
|
// TEST1: "-cc1" {{.*}} "-mincremental-linker-compatible"
|
|
|
|
// RUN: %clang '-###' %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -mno-incremental-linker-compatible 2>&1 | FileCheck %s --check-prefix=TEST2
|
|
// TEST2-NOT: "-cc1" {{.*}} "-mincremental-linker-compatible"
|
|
|
|
// RUN: %clang '-###' %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -mno-incremental-linker-compatible -mincremental-linker-compatible 2>&1 | FileCheck %s --check-prefix=TEST3
|
|
// TEST3: "-cc1" {{.*}} "-mincremental-linker-compatible"
|
|
|
|
// RUN: %clang '-###' %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -mincremental-linker-compatible -mno-incremental-linker-compatible 2>&1 | FileCheck %s --check-prefix=TEST4
|
|
// TEST4-NOT: "-cc1" {{.*}} "-mincremental-linker-compatible"
|
|
|
|
// RUN: %clang '-###' %s -c -o tmp.o -target i686-pc-mingw32 -integrated-as 2>&1 | FileCheck %s --check-prefix=TEST5
|
|
// TEST5-NOT: "-cc1" {{.*}} "-mincremental-linker-compatible"
|
|
|
|
// RUN: %clang '-###' %s -c -o tmp.o -target i686-pc-win32 -integrated-as 2>&1 | FileCheck %s --check-prefix=TEST6
|
|
// TEST6: "-cc1" {{.*}} "-mincremental-linker-compatible"
|