fix(platform/xilinx): set the include dir as a workspace dir to ensure proper indexer functionality
This commit is contained in:
@@ -166,7 +166,7 @@ proc _update_app_mem_layout {app_name mem_layout} {
|
||||
proc _update_app_build_config {app_name build_type build_config is_vitis} {
|
||||
set build_types {"debug" "release"}
|
||||
if {[lsearch $build_types $build_type] == -1} {
|
||||
_error "Invalid config type: $build_type" "available types: $build_types"
|
||||
_error "Invalid config type: $build_type" "available types: $build_types"
|
||||
}
|
||||
|
||||
set cmd [list]
|
||||
@@ -183,7 +183,8 @@ proc _update_app_build_config {app_name build_type build_config is_vitis} {
|
||||
switch -exact -- $param {
|
||||
"include-path" {
|
||||
foreach path $value {
|
||||
eval $cmd $app_name include-path "../$path"
|
||||
set path_str [format "\"\${workspace_loc:/%s/%s}\"" $app_name $path]
|
||||
eval $cmd $app_name include-path [list $path_str]
|
||||
_info "Append included path: $path for $app_name."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user