diff options
| author | Brian Paul <brian.paul@broadcom.com> | 2025-06-27 09:17:06 -0600 |
|---|---|---|
| committer | Marge Bot <marge-bot@fdo.invalid> | 2025-07-03 14:30:16 +0000 |
| commit | b85265bbc20db2896ab597ea45f919ddfffcb434 (patch) | |
| tree | ff6e3a0b2a74ae650ccea837f4fe14044ff023c7 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | |
| parent | 248462cbe39c2e566b7b40fca5c3e6f028762293 (diff) | |
gallivm: always use mkdir() instead of std::filesytem::create_directory()
Suse Linux Enterprise 15 is still on g++ 7.5 so std::filesystem
does not exist. Just use mkdir() instead.
Signed-off-by: Brian Paul <brian.paul@broadcom.com>
Tested-by: Mauro Rossi <issor.oruam@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35841>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
| -rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index cc9de691b2d..a2582fa8ba7 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -47,6 +47,7 @@ #include "util/u_math.h" #include "util/u_debug.h" +#include "driver_ddebug/dd_util.h" #include "lp_bld_debug.h" #include "lp_bld_intr.h" @@ -57,9 +58,6 @@ #include <llvm/BinaryFormat/Dwarf.h> -#if !DETECT_OS_ANDROID -#include <filesystem> -#endif /** * Check alignment. @@ -379,11 +377,7 @@ lp_function_add_debug_info(gallivm_state *gallivm, LLVMValueRef func, LLVMTypeRe if (!gallivm->file) { uint32_t shader_index = p_atomic_add_return(&global_shader_index, 1); -#if !DETECT_OS_ANDROID - std::filesystem::create_directory(LP_NIR_SHADER_DUMP_DIR); -#else mkdir(LP_NIR_SHADER_DUMP_DIR, 0755); -#endif asprintf(&gallivm->file_name, "%s/%u.nir", LP_NIR_SHADER_DUMP_DIR, shader_index); |