Skip to content

Commit

Permalink
Build: Ensure INCLUDE_FAUSTDEV_BUT_NOT_LLVM doesn"t include LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
kmatheussen committed Jan 28, 2024
1 parent 2a5ca57 commit ab84157
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/packages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ unset CPPFLAGS
unset LDFLAGS
unset CXXFLAGS



export COMMON_CFLAGS="-mtune=generic -fPIC -fno-strict-aliasing -Wno-misleading-indentation "

if uname -s |grep Darwin ; then
Expand Down Expand Up @@ -93,6 +95,14 @@ build_faust() {
#patch -p1 <../faust_make.llvm.static.patch
if env |grep INCLUDE_FAUSTDEV_BUT_NOT_LLVM ; then
sed -i 's/LLVM_BACKEND \tCOMPILER STATIC/LLVM_BACKEND OFF/' build/backends/most.cmake
if grep LLVM_BACKEND build/backends/most.cmake | grep COMPILER ; then
echo "sed failed"
exit -1
fi
if grep LLVM_BACKEND build/backends/most.cmake | grep STATIC ; then
echo "sed failed"
exit -1
fi
fi

patch -p0 < ../faust3.patch
Expand Down

0 comments on commit ab84157

Please sign in to comment.