File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ echo "Created build directory: $BUILD_DIR"
6363
6464# Compile the MicroModelica file
6565echo " Compiling $MO_FILE ..."
66- if ! " $MMOC_BIN /mmoc" $ FLAGS -o " $BUILD_DIR /$FILE " " $MO_FILE " ; then
66+ if ! " $MMOC_BIN /mmoc" " $MO_FILE " $ FLAGS -o " $BUILD_DIR /$FILE " ; then
6767 echo " Error: Compilation failed."
6868 exit 1
6969fi
Original file line number Diff line number Diff line change 33#
44# FILE: mmoc.sh
55#
6- # USAGE: mmoc.sh [OPTIONS] <FILE>
6+ # USAGE: mmoc.sh <FILE> [OPTIONS]
77#
88# DESCRIPTION: Runs the MicroModelica compiler on file <FILE>
9- # with options defined in < OPTIONS>
9+ # with options defined in [ OPTIONS]
1010#
1111# PARAMETERS: <FILE> MicroModelica file.
1212# OPTIONS: [OPTIONS] MicroModelica compiler options (see ./mmoc --help).
2525
2626# Validate input parameters
2727if [ $# -lt 2 ]; then
28- echo " Usage: $0 [OPTIONS] <FILE>"
28+ echo " Usage: $0 <FILE> [OPTIONS] "
2929 exit 1
3030fi
3131
32- OPTIONS =$1
33- FILE =$2
32+ FILE =$1
33+ OPTIONS =$2
3434
3535# Check if the specified file exists
3636if [ ! -f " $FILE " ]; then
Original file line number Diff line number Diff line change @@ -631,12 +631,12 @@ bool MmomeGui::compile(bool dbg)
631631 set += flags;
632632 }
633633 set += " -o " + buildDir.absolutePath () + SLASH + Editor::instance ()->activeBaseFileName ();
634- args << set;
635634 args << Editor::instance ()->activeFullFileName ();
635+ args << set;
636636 QString comp = _utils->appCommand (CMD_COMPILE );
637637 _compiler_msg->setPlainText (_compiler_msg->toPlainText () + QString (" \n Compiling model: " ));
638- _compiler_msg->setPlainText (_compiler_msg->toPlainText () + QString (" \n " ) + _utils->appDir (MMOC_BIN ) + SLASH + comp + " " + set + " " +
639- Editor::instance ()-> activeFullFileName () );
638+ _compiler_msg->setPlainText (_compiler_msg->toPlainText () + QString (" \n " ) + _utils->appDir (MMOC_BIN ) + SLASH + comp + " " + Editor::instance ()-> activeFullFileName () + " " +
639+ set );
640640 _compiler_msg->moveCursor (QTextCursor::End);
641641 _compiler_msg->ensureCursorVisible ();
642642 QProcessEnvironment env = QProcessEnvironment::systemEnvironment ();
You can’t perform that action at this time.
0 commit comments