From 0d4bed488301cf15346121bb58dfcf4f98c42b20 Mon Sep 17 00:00:00 2001 From: Rick Weber Date: Thu, 21 Apr 2022 15:17:04 -0700 Subject: [PATCH 1/2] Build seal-c for WASM --- native/src/seal/c/defines.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/native/src/seal/c/defines.h b/native/src/seal/c/defines.h index a090bd76c..1e1c7c420 100644 --- a/native/src/seal/c/defines.h +++ b/native/src/seal/c/defines.h @@ -3,15 +3,9 @@ #pragma once -// STD -#include - // SEALNet #include "seal/c/stdafx.h" -// Check that std::size_t is 64 bits -static_assert(sizeof(std::size_t) == 8, "Require sizeof(std::size_t) == 8"); - #ifdef _MSC_VER // Check that architecture (platform) is x64 From 5696187a868d842a3f6bfdc2c0c5105e0fa12301 Mon Sep 17 00:00:00 2001 From: Rick Weber Date: Thu, 21 Apr 2022 23:39:04 -0700 Subject: [PATCH 2/2] Remove 64-bit check for WASM --- CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03d2b5da9..d10ea35ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -511,14 +511,6 @@ mark_as_advanced(SEAL_BUILD_STATIC_SEAL_C) # Create SEAL_C library but add no source files yet if(SEAL_BUILD_SEAL_C) - # Check that size_t is 8 bytes - include(CheckTypeSize) - check_type_size("size_t" SIZET LANGUAGE C) - if(NOT ${SIZET} EQUAL 8) - unset(SIZET CACHE) - unset(HAVE_SIZET CACHE) - message(FATAL_ERROR "SEAL_C requires 64-bit platform") - endif() unset(SIZET CACHE) unset(HAVE_SIZET CACHE)