Skip to content

Commit

Permalink
Revert "pixi: Test if the CI is still red if we don't remove conda-fo…
Browse files Browse the repository at this point in the history
…rge compilation flags"

This reverts commit ca23397.
  • Loading branch information
jorisv committed Oct 22, 2024
1 parent 4563cad commit 59378a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ scripts = ["scripts/activation.bat"]
# We must avoid to set CMAKE_CXX_FLAGS because of WIN32
# https://discourse.cmake.org/t/strictly-appending-to-cmake-lang-flags/6478
configure = { cmd = [
"CXXFLAGS=$PINOCCHIO_CXX_FLAGS",
"cmake",
"-G",
"Ninja",
Expand Down
9 changes: 9 additions & 0 deletions scripts/activation.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#! /bin/bash
# Activation script

# Remove flags setup from cxx-compiler
unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
unset DEBUG_CFLAGS
unset DEBUG_CPPFLAGS
unset DEBUG_CXXFLAGS
unset LDFLAGS

# Setup ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache

Expand Down

0 comments on commit 59378a3

Please sign in to comment.