AR# 51986

Vivado HLS 2014.1: How do I add compiler flags such as -std=c99 to a HLS project?​

Description

How do I add compiler flags such as -std=c99 to a HLS project?

Solution

Select Project -> Project Settings -> Synthesis.

Then select a source file, and click Edit CFLAGS.

See the below examples:
Vivado_HLS_1.PNG



 
Vivado_HLS_2.PNG


The equivalent TCL command when scripting is :

add_files types_float_double.c -cflags "-std=c99"
AR# 51986
Date 07/10/2014
Status Active
Type General Article
Devices
Tools