diff --git a/build_scripts/setup_cl_x64.bat b/build_scripts/setup_cl_x64.bat index c953d5e0..fa31686c 100644 --- a/build_scripts/setup_cl_x64.bat +++ b/build_scripts/setup_cl_x64.bat @@ -1,4 +1,5 @@ @echo off -setup_cl_generic.bat amd64 +SET SCRIPTS_PATH=%~dp0 +%SCRIPTS_PATH%\setup_cl_generic.bat amd64 diff --git a/build_scripts/setup_cl_x86.bat b/build_scripts/setup_cl_x86.bat index 33fdcc1f..2831dbf2 100644 --- a/build_scripts/setup_cl_x86.bat +++ b/build_scripts/setup_cl_x86.bat @@ -1,5 +1,6 @@ @echo off -setup_cl_generic.bat amd64_x86 +SET SCRIPTS_PATH=%~dp0 +%SCRIPTS_PATH%\setup_cl_generic.bat amd64_x86 diff --git a/meta/build.cpp b/meta/build.cpp index 32381b4b..0efc2e29 100644 --- a/meta/build.cpp +++ b/meta/build.cpp @@ -158,10 +158,10 @@ build_cl(u32 flags, char *code_path, char *code_file, char *out_path, char *out_ init_build_line(&line_prefix); if (flags & X86){ - build_ap(line_prefix, "BUILD_SCRIPTS\\SETUP_CL_X86 & "); + build_ap(line_prefix, "%s\\build_scripts\\setup_cl_x86.bat & ", code_path); } else{ - build_ap(line_prefix, "BUILD_SCRIPTS\\SETUP_CL_X64 & "); + build_ap(line_prefix, "%s\\build_scripts\\setup_cl_x64.bat & ", code_path); } if (flags & OPTS){