Skip to content

Commit

Permalink
nvcc needs clang++ to build the kernels, fails with gcc 14
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 4, 2024
1 parent 9d7f74b commit 3a6be55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packaging/rpm/xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ Requires: xpra-audio = %{version}-%{release}
Recommends: xpra-audio = %{version}-%{release}
%endif
BuildRequires: gcc
%if 0%{?fedora}>=40
BuildRequires: clang
%endif
BuildRequires: gcc-c++
BuildRequires: python3-Cython
BuildRequires: pkgconfig
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2293,6 +2293,8 @@ def get_nvcc_args():
nvcc_cmd.append("-std=c++11")
if gcc_version>=(12, 0) or CC_is_clang():
nvcc_cmd.append("--allow-unsupported-compiler")
if gcc_version>=(14, 0) and not CC_is_clang():
nvcc_cmd.append("-ccbin=clang++")
if nvcc_version>=(11, 5):
nvcc_cmd += ["-arch=all",
"-Wno-deprecated-gpu-targets",
Expand Down

0 comments on commit 3a6be55

Please sign in to comment.