Skip to content

Commit 47917cb

Browse files
pmderodatRoldak
authored andcommitted
project_file.mako: update file names for the Quex-generated lexer
This adds missing bits from the renaming of the source files that Quex generates. TN: R913-030
1 parent 1168026 commit 47917cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

langkit/templates/project_file.mako

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ library project ${lib_name} is
124124
for Default_Switches ("C") use
125125
Common_C_Cargs & ("-g3", "-O0", "-DDEBUG=1");
126126

127-
for Switches ("quex_lexer.c") use Common_C_Cargs & ("-g0", "-O0");
127+
for Switches ("${lib_name.lower()}_quex_lexer.c") use
128+
Common_C_Cargs & ("-g0", "-O0");
128129
-- This file is *huge* and the debugging information for it harms
129130
-- Valgrind runs. We almost never have to debug this file so
130131
-- this is acceptable.
@@ -137,7 +138,7 @@ library project ${lib_name} is
137138

138139
for Default_Switches ("C") use Common_C_Cargs & ("-Ofast");
139140

140-
for Switches ("quex_lexer.c") use Common_C_Cargs
141+
for Switches ("${lib_name.lower()}_quex_lexer.c") use Common_C_Cargs
141142
& ("-O1", "-fno-ree", "-fdisable-rtl-cprop_hardreg",
142143
"-fdisable-rtl-sched2", "-mno-stv");
143144
-- Deactivate because of memory usage, see P726-024. This

0 commit comments

Comments
 (0)