Skip to content

Commit

Permalink
avoid compilation errors with gcc version 7 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 6, 2023
1 parent 7e7519a commit 9fe6703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,8 @@ def nvcc_compile(nvcc_cmd):

add_data_files(CUDA_BIN, ["fs/share/xpra/cuda/README.md"])

tace(nvenc_ENABLED, "xpra.codecs.nvenc.encoder", "nvenc")
tace(nvenc_ENABLED, "xpra.codecs.nvenc.encoder", "nvenc",
extra_compile_args="-Wno-error=sign-compare" if get_gcc_version()<(8, ) else "")

toggle_packages(argb_ENABLED, "xpra.codecs.argb")
tace(argb_ENABLED, "xpra.codecs.argb.argb", optimize=3)
Expand Down

0 comments on commit 9fe6703

Please sign in to comment.