Skip to content

Commit

Permalink
Merge branch 'rc' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Oct 24, 2024
2 parents bf225de + a4ab2a8 commit 5798c0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions cmake/DepsDownload.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@ include(./cmake/DepsHelpers.cmake)

# Set this to false, when using a custom v8 build for testing
set(__deps_check_enabled true)
set(V8_VERSION "12.4.254")

function(DownloadDeps)
set(__base_path "${PROJECT_SOURCE_DIR}/deps/v8")

GetBranchAndOS(__deps_branch __deps_os_path_name)
set(__deps_url_base_path "https://cdn.alt-mp.com/deps/v8/${__deps_branch}")
set(__deps_url_base_path "https://cdn.alt-mp.com/deps/v8/${V8_VERSION}")

if(__deps_check_enabled)
if(WIN32)
message("Checking release binaries...")

GetCDNInfo("${__deps_url_base_path}/${__deps_os_path_name}/Release" __deps_release_hashes __deps_current_version)

DownloadFile("v8_monolith.lib" "${__base_path}/lib/Release" "${__deps_os_path_name}/Release" ${__deps_release_hashes})

# Only download debug binary in Debug builds
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
message("Checking debug binaries...")

GetCDNInfo("${__deps_url_base_path}/${__deps_os_path_name}/Debug" __deps_debug_hashes __deps_current_version)

DownloadFile("v8_monolith.lib" "${__base_path}/lib/Debug" "${__deps_os_path_name}/Debug" ${__deps_debug_hashes})
# GetCDNInfo("${__deps_url_base_path}/${__deps_os_path_name}/Debug" __deps_debug_hashes __deps_current_version)
# DownloadFile("v8_monolith.lib" "${__base_path}/lib/Debug" "${__deps_os_path_name}/Debug" ${__deps_debug_hashes})
endif()
elseif(UNIX)
message("Checking binaries...")
Expand All @@ -33,9 +32,10 @@ function(DownloadDeps)
DownloadFile("libv8_monolith.a" "${__base_path}/lib" "${__deps_os_path_name}" ${__deps_linux_hashes})
endif()

GetCDNInfo("${__deps_url_base_path}" __deps_headers_hashes __deps_current_version)
DownloadFile("headers.zip" "${__base_path}/include" "" ${__deps_headers_hashes})
file(ARCHIVE_EXTRACT INPUT "${__base_path}/include/headers.zip" DESTINATION "${__base_path}/..")
GetCDNInfo("${__deps_url_base_path}/include" __deps_headers_hashes __deps_current_version)
DownloadFile("include.zip" "${__base_path}/include" "include" ${__deps_headers_hashes})
file(ARCHIVE_EXTRACT INPUT "${__base_path}/include/include.zip" DESTINATION "${__base_path}/include")
file(REMOVE "${__base_path}/include/include.zip")

if(__deps_current_version)
message("V8 deps version: ${__deps_current_version}")
Expand Down
2 changes: 1 addition & 1 deletion compiler/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ std::vector<uint8_t> Compiler::CreateBytecodeBuffer(const uint8_t* buffer, int l

static constexpr int srcHashOffset = 8;

static constexpr uint32_t flagsHash = 243571335;
static constexpr uint32_t flagsHash = 700872405;
static constexpr int flagsHashOffset = 12;

void Compiler::FixBytecode(const uint8_t* buffer, int sourceLength)
Expand Down

0 comments on commit 5798c0a

Please sign in to comment.