mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 09:41:26 +00:00
e5b754e810
Original-commit: flang-compiler/f18@325b26b3a4 Reviewed-on: https://github.com/flang-compiler/f18/pull/832 Tree-same-pre-rewrite: false
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
def clang(arch):
|
|
return {
|
|
"kind": "pipeline",
|
|
"name": "%s-clang" % arch,
|
|
"steps": [
|
|
{
|
|
"name": "test",
|
|
"image": "ubuntu",
|
|
"commands": [
|
|
"apt-get update && apt-get install -y clang-8 cmake ninja-build lld-8 llvm-dev libc++-8-dev libc++abi-8-dev",
|
|
"mkdir build && cd build",
|
|
'env CC=clang-8 CXX=clang++-8 CXXFLAGS="-UNDEBUG -stdlib=libc++" LDFLAGS="-fuse-ld=lld" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..',
|
|
"ninja -j12",
|
|
"ctest --output-on-failure -j24",
|
|
],
|
|
},
|
|
],
|
|
|
|
}
|
|
|
|
def gcc(arch):
|
|
return {
|
|
"kind": "pipeline",
|
|
"name": "%s-gcc" % arch,
|
|
"steps": [
|
|
{
|
|
"name": "test",
|
|
"image": "gcc",
|
|
"commands": [
|
|
"apt-get update && apt-get install -y cmake ninja-build llvm-dev",
|
|
"mkdir build && cd build",
|
|
'env CC=gcc CXX=g++ CXXFLAGS="-UNDEBUG" LDFLAGS="-fuse-ld=gold" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..',
|
|
"ninja -j12",
|
|
"ctest --output-on-failure -j24",
|
|
],
|
|
},
|
|
],
|
|
|
|
}
|
|
|
|
def main(ctx):
|
|
return [
|
|
clang("amd64"),
|
|
clang("arm64"),
|
|
gcc("amd64"),
|
|
gcc("arm64"),
|
|
]
|
|
|