mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
From ca329ae93306913aac51813b47f83da730379dcf Mon Sep 17 00:00:00 2001
|
|
From: Luc Schrijvers <begasus@gmail.com>
|
|
Date: Tue, 18 Mar 2025 11:09:52 +0100
|
|
Subject: Disable position_independen_code, werror
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7a4c0f6..ef5a270 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -95,7 +95,7 @@ mark_as_advanced(TRACY_MEMORY_USAGE)
|
|
mark_as_advanced(MANIFOLD_FUZZ)
|
|
|
|
# Always build position independent code for relocatability
|
|
-set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
+set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
|
|
|
|
# Various Compiler Flags
|
|
if(MANIFOLD_FUZZ)
|
|
@@ -164,7 +164,7 @@ else()
|
|
endif()
|
|
elseif(PROJECT_IS_TOP_LEVEL)
|
|
# only do -Werror if we are the top level project
|
|
- list(APPEND WARNING_FLAGS -Werror)
|
|
+ list(APPEND WARNING_FLAGS)
|
|
endif()
|
|
list(APPEND MANIFOLD_FLAGS ${WARNING_FLAGS})
|
|
if(
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From c78584f5ad5b9e73d2773eee015643d924eb224e Mon Sep 17 00:00:00 2001
|
|
From: Luc Schrijvers <begasus@gmail.com>
|
|
Date: Tue, 18 Mar 2025 11:10:12 +0100
|
|
Subject: Build fix
|
|
|
|
|
|
diff --git a/src/sparse.h b/src/sparse.h
|
|
index a25ea61..50fec0e 100644
|
|
--- a/src/sparse.h
|
|
+++ b/src/sparse.h
|
|
@@ -48,7 +48,7 @@ class SparseIndices {
|
|
defined(__LITTLE_ENDIAN__) || defined(__ARMEL__) || \
|
|
defined(__THUMBEL__) || defined(__AARCH64EL__) || defined(_MIPSEL) || \
|
|
defined(__MIPSEL) || defined(__MIPSEL__) || defined(__EMSCRIPTEN__) || \
|
|
- defined(_WIN32)
|
|
+ defined(_WIN32) || defined(__HAIKU__)
|
|
static constexpr size_t pOffset = 1;
|
|
#else
|
|
#error "unknown architecture"
|
|
--
|
|
2.48.1
|
|
|