Skip to content

Commit b0688ef

Browse files
committed
add scotch patch to avoid adding windows-specific flag to flex command line args
1 parent ac4d3f6 commit b0688ef

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ cd ../../
669669
# Scotch (includes METIS compatibility library)
670670
git clone -b $SCOTCH_VERSION --depth 1 https://gitlab.inria.fr/scotch/scotch.git
671671
cd scotch
672+
git apply --ignore-space-change --ignore-whitespace --verbose ../scotch.diff
672673
mkdir build
673674
cd build
674675
cmake -GNinja .. \

scotch.diff

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2+
index c6e21eb..58421d9 100644
3+
--- a/src/CMakeLists.txt
4+
+++ b/src/CMakeLists.txt
5+
@@ -98,11 +98,7 @@ else()
6+
message(STATUS "Flex found here: ${FLEX_EXECUTABLE}")
7+
endif()
8+
9+
-if(WIN32)
10+
- set(FLEX_FLAG "--wincompat")
11+
-else()
12+
- set(FLEX_FLAG "")
13+
-endif()
14+
+set(FLEX_FLAG "")
15+
16+
#############
17+
# Options #

0 commit comments

Comments
 (0)