Skip to content

Commit 9b9c2cf

Browse files
committed
fixed prefix path for ci and testing patch for sanitizer
1 parent 362b471 commit 9b9c2cf

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
with:
5858
fetch-depth: 0
5959

60+
- name: Trust checkout directory
61+
shell: bash
62+
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
63+
6064
- name: Verify CodeQL source root
6165
shell: bash
6266
run: |

ci/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function show_gemc_installation {
4040

4141
function meson_setup_options {
4242
# valid options: address, thread, undefined, memory, leak
43-
local install_dir="${SIM_HOME:?SIM_HOME not set}/gemc"
43+
local install_dir="${SIM_HOME:?SIM_HOME not set}/gemc/dev"
4444

4545
meson_options=""
4646
buildtype=" -Dbuildtype=debug "

gfactory/gdl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ struct DynamicLib
104104
}
105105

106106
if (doesFileExists(dlFileName)) {
107+
dlFileName = std::filesystem::absolute(dlFileName).string();
107108
handle = load_lib(dlFileName);
108109
if (handle == nullptr) {
109110
char const* const dlopen_error = dlerror();
110111
log->error(ERR_DLHANDLENOTFOUND, "File ", dlFileName, " found, but handle is null. dlopen_error >> ",
111-
dlopen_error);
112+
dlopen_error != nullptr ? dlopen_error : "unknown dlopen error");
112113
}
113114
else { log->info(1, "Loaded ", dlFileName); }
114115
}

0 commit comments

Comments
 (0)