Skip to content

Commit

Permalink
force .a file creation thru anonymous global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SizzinSeal committed Nov 21, 2024
1 parent aa32e7a commit cb0f3a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/units/dummy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@
// otherwise units does not compile reliably on all platforms
// and the pros conductor will not let you create a template if there is
// no .a file

// a global, volatile variable in an anonymous namespace
// its put in an anonymous namespace to guarantee that there won't be any
// linker errors
// 10/10 codebase (i don't feel like PRing a fix to PROS, make is scary)
namespace {
volatile char dummy_var;
}

0 comments on commit cb0f3a7

Please sign in to comment.