Skip to content

Commit

Permalink
fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuepe-sl committed Dec 14, 2023
1 parent 5a3fddd commit d1c8bcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipe/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def install():

env = dict(os.environ)
env[PATCH_ENV_VAR] = cmake_args + os.environ.get("CMAKE_ARGS", "").replace(" ", "\n")
# Some CUDA code doesn't compile with C++17 features and NVCC. C++11 works.
for env_flags in ["CXXFLAGS", "DEBUG_CXXFLAGS"]:
if env_flags in os.environ:
env[env_flags] = os.environ.get(env_flags).replace("-std=c++17", "-std=c++11")
print("Added to environment:\n{} = {}".format(
PATCH_ENV_VAR,
"".join(cmake_args)
Expand Down

0 comments on commit d1c8bcb

Please sign in to comment.