Menu

#12 Having win_bison compile automatically when grammar has been edited  Edit

2.0
open
nobody
None
2025-08-26
2025-08-26
Anonymous
No

Hi,
To get win_bison build without needing CTRL+F7 manual compile, I had to tweak the project file, so that win_bison (resp. win_lex) builds automatically whenever .y (resp. .l) file has been edited :

<propertygroup>
<builddependson>$(BuildDependsOn);BisonTarget;FlexTarget</builddependson>
<disablefastuptodatecheck>true</disablefastuptodatecheck>
</propertygroup>

Seems that VS’s Fast Up-to-Date Check only watches known item types (ClCompile, ClInclude) but ignores FlexTarget and BisonTarget...

Regards,

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2025-08-26
    • summary: Having win_bison --> Having win_bison compile automatically when grammar has been edited
     
  • Anonymous

    Anonymous - 2025-08-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,4 +5,4 @@
        &lt;DisableFastUpToDateCheck&gt;true&lt;/DisableFastUpToDateCheck&gt;
       &lt;/PropertyGroup&gt;
    
    -Seems that FastUpToDateCheck VS’s Fast Up-to-Date Check only watches known item types (ClCompile, ClInclude) but ignores FlexTarget and BisonTarget...
    +Seems that VS’s Fast Up-to-Date Check only watches known item types (ClCompile, ClInclude) but ignores FlexTarget and BisonTarget...
    
     
  • Anonymous

    Anonymous - 2025-08-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,5 @@
    -Had to tweak project file, so that win_bison (resp. win_lex) builds automatically whenever .y  (resp. .l) file has been edited :
    +Hi,
    +To get win_bison build without needing CTRL+F7 manual compile, I had to tweak the project file, so that win_bison (resp. win_lex) builds automatically whenever .y  (resp. .l) file has been edited :
    
       &lt;PropertyGroup&gt;
         &lt;BuildDependsOn&gt;$(BuildDependsOn);BisonTarget;FlexTarget&lt;/BuildDependsOn&gt;
    @@ -6,3 +7,5 @@
       &lt;/PropertyGroup&gt;
    
     Seems that VS’s Fast Up-to-Date Check only watches known item types (ClCompile, ClInclude) but ignores FlexTarget and BisonTarget...
    +
    +Regards,
    
     

Anonymous
Anonymous

Add attachments
Cancel