Skip to content

Commit

Permalink
Fix assignment in genus template (#165)
Browse files Browse the repository at this point in the history
* Fix assignment in genus template

* Improve search_path_initial init in genus template
  • Loading branch information
cahz authored Apr 29, 2024
1 parent 19b410f commit 9eb04ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/script_fmt/genus_tcl.tera
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# {{ HEADER_AUTOGEN }}
if [ info exists search_path ] {{ '{{' }}
set search_path_initial $search_path
{{ '}}' }}
set ROOT = "{{ root }}"
if [ info exists search_path ] {
set search_path_initial $search_path
} else {
set search_path_initial {}
}
set ROOT "{{ root }}"
{% if compilation_mode == 'separate' %}{% for group in srcs %}
set search_path $search_path_initial
{% for incdir in group.incdirs %}lappend search_path "$ROOT{{ incdir | replace(from=root, to='') }}"
Expand Down

0 comments on commit 9eb04ee

Please sign in to comment.