mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-22 14:19:02 +00:00
debug ci
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -23,17 +23,16 @@ jobs:
|
|||||||
- name: debug
|
- name: debug
|
||||||
run: apt-cache search plugin-dev | grep gcc-; echo; apt-cache search clang-format- | grep clang-format-
|
run: apt-cache search plugin-dev | grep gcc-; echo; apt-cache search clang-format- | grep clang-format-
|
||||||
- name: update
|
- name: update
|
||||||
run: sudo apt-get update
|
run: sudo apt-get update && sudo apt-get upgrade -y
|
||||||
# && sudo apt-get upgrade -y
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
#run: sudo apt-get install -y -m -f --install-suggests build-essential git libtool libtool-bin automake bison libglib2.0-0 clang llvm-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
|
#run: sudo apt-get install -y -m -f --install-suggests build-essential git libtool libtool-bin automake bison libglib2.0-0 clang llvm-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
|
||||||
run: sudo apt-get install -y -m -f build-essential git libtool libtool-bin automake flex bison libglib2.0-0 clang llvm-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
|
run: sudo apt-get install -y -m -f build-essential git libtool libtool-bin automake flex bison libglib2.0-0 clang-12 llvm-12-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
|
||||||
- name: compiler installed
|
- name: compiler installed
|
||||||
run: gcc -v; echo; clang -v
|
run: gcc -v; echo; clang -v
|
||||||
- name: install gcc plugin
|
- name: install gcc plugin
|
||||||
run: sudo apt-get install -y -m -f --install-suggests $(readlink /usr/bin/gcc)-plugin-dev
|
run: sudo apt-get install -y -m -f --install-suggests $(readlink /usr/bin/gcc)-plugin-dev
|
||||||
- name: build afl++
|
- name: build afl++
|
||||||
run: make distrib ASAN_BUILD=1 NO_NYX=1
|
run: make distrib ASAN_BUILD=1 NO_NYX=1 LLVM_CONFIG=llvm-config-12
|
||||||
- name: run tests
|
- name: run tests
|
||||||
run: sudo -E ./afl-system-config; make tests
|
run: sudo -E ./afl-system-config; make tests
|
||||||
# macos:
|
# macos:
|
||||||
|
@ -1458,11 +1458,13 @@ void add_real_argv0(aflcc_state_t *aflcc) {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
u8 *alt_cc = getenv("AFL_CC");
|
u8 *alt_cc = getenv("AFL_CC");
|
||||||
|
printf("AFL_CC=%s\n", alt_cc);
|
||||||
|
|
||||||
if (!alt_cc) {
|
if (!alt_cc) {
|
||||||
|
|
||||||
if (aflcc->compiler_mode == GCC || aflcc->compiler_mode == GCC_PLUGIN) {
|
if (aflcc->compiler_mode == GCC || aflcc->compiler_mode == GCC_PLUGIN) {
|
||||||
|
|
||||||
|
printf("is gcc %d == %d || %d == %d\n", aflcc->compiler_mode, GCC, aflcc->compiler_mode, GCC_PLUGIN);
|
||||||
alt_cc = "gcc";
|
alt_cc = "gcc";
|
||||||
|
|
||||||
} else if (aflcc->compiler_mode == CLANG) {
|
} else if (aflcc->compiler_mode == CLANG) {
|
||||||
@ -1478,6 +1480,8 @@ void add_real_argv0(aflcc_state_t *aflcc) {
|
|||||||
snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANG_BIN);
|
snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANG_BIN);
|
||||||
alt_cc = llvm_fullpath;
|
alt_cc = llvm_fullpath;
|
||||||
|
|
||||||
|
printf("use_bindir=%s llvm_fullpath=%s\n", USE_BINDIR ? "true" : "false", llvm_fullpath);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user