diff --git a/tools/quartus/run_app b/tools/quartus/run_app
index 72eb0e4ae06fd18f02fa7654d69e887e003b95a0..7470467d97473b064016711d279b44d3e8f661a7 100755
--- a/tools/quartus/run_app
+++ b/tools/quartus/run_app
@@ -98,6 +98,9 @@ for arg ; do
         use=qsys)
             userflags="-DCOMPILE_FOR_QSYS"
             ;;
+        use=gen2)
+            userflags="-DCOMPILE_FOR_GEN2"
+            ;;
         *=* )
             # it was an option. skip it - if we wanted to,
             # we could process them over here