Skip to content

Commit

Permalink
guix: Specify native compiler explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Sep 30, 2024
1 parent b6a3350 commit 9ed54be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ unset OBJCPLUS_INCLUDE_PATH
export C_INCLUDE_PATH="${NATIVE_GCC}/include"
export CPLUS_INCLUDE_PATH="${NATIVE_GCC}/include/c++:${NATIVE_GCC}/include"

echo --------------------------------------------------
ls -l "${NATIVE_GCC}/bin"
export native_qt_cc="${NATIVE_GCC}/bin/gcc"
export native_qt_cxx="${NATIVE_GCC}/bin/g++"
echo --------------------------------------------------

case "$HOST" in
*darwin*) export LIBRARY_PATH="${NATIVE_GCC}/lib" ;; # Required for qt/qmake
*mingw*) export LIBRARY_PATH="${NATIVE_GCC}/lib" ;;
Expand Down
2 changes: 2 additions & 0 deletions depends/packages/native_qt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ $(package)_config_opts += -no-feature-qtattributionsscanner
$(package)_config_opts += -no-feature-qtdiag
$(package)_config_opts += -no-feature-qtplugininfo

$(package)_config_env := CC="$$($(package)_cc)"
$(package)_config_env += CXX="$$($(package)_cxx)"
endef

define $(package)_fetch_cmds
Expand Down

0 comments on commit 9ed54be

Please sign in to comment.