Skip to content

Commit 3468a7e

Browse files
change c++ version to c++11 for vivado_hls (#10)
1 parent 787b1e6 commit 3468a7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vitis/defs.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ vitis_hls_files_aspect = aspect(
3434

3535
def _vitis_generate_impl(ctx):
3636
all_files = []
37-
cflags = "-D__SYNTHESIS__=1 --std=c++17"
37+
if ctx.attr.use_vivado_hls:
38+
cflags = "-D__SYNTHESIS__=1 --std=c++11"
39+
else:
40+
cflags = "-D__SYNTHESIS__=1 --std=c++17"
3841
for dep in ctx.attr.deps:
3942
for file in dep[HlsFileInfo].files:
4043
external_path = "/".join([file.root.path, file.owner.workspace_root]) if file.root.path else file.owner.workspace_root

0 commit comments

Comments
 (0)