Skip to content

Commit

Permalink
change c++ version to c++11 for vivado_hls (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bopeng-cruxml authored Apr 4, 2023
1 parent 787b1e6 commit 3468a7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vitis/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ vitis_hls_files_aspect = aspect(

def _vitis_generate_impl(ctx):
all_files = []
cflags = "-D__SYNTHESIS__=1 --std=c++17"
if ctx.attr.use_vivado_hls:
cflags = "-D__SYNTHESIS__=1 --std=c++11"
else:
cflags = "-D__SYNTHESIS__=1 --std=c++17"
for dep in ctx.attr.deps:
for file in dep[HlsFileInfo].files:
external_path = "/".join([file.root.path, file.owner.workspace_root]) if file.root.path else file.owner.workspace_root
Expand Down

0 comments on commit 3468a7e

Please # to comment.