Add test for ucrt64 toolchain detection on fedora
This commit is contained in:
parent
5a94d66325
commit
048eb66cf0
3 changed files with 22 additions and 0 deletions
12
ucrt64-toolchain/main.fmf
Normal file
12
ucrt64-toolchain/main.fmf
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
summary: Test that ucrt64 toolchain is detected
|
||||
test: ./runtest.sh
|
||||
component:
|
||||
- clang
|
||||
require:
|
||||
- clang
|
||||
- ucrt64-gcc-c++
|
||||
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro != fedora or distro < fedora-37
|
||||
because: "The ucrt64 toolchain is only available since Fedora 37"
|
||||
4
ucrt64-toolchain/runtest.sh
Executable file
4
ucrt64-toolchain/runtest.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
set -eux
|
||||
|
||||
clang++ --target=x86_64-windows-gnu test.cpp
|
||||
file a.exe | grep "PE32+ executable (console) x86-64, for MS Windows"
|
||||
6
ucrt64-toolchain/test.cpp
Normal file
6
ucrt64-toolchain/test.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello world" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue