JITInput files not working

Added TRICK_SYSTEM_CXXFLAGS and TRICK_SYSTEM_CFLAGS to the gte list of
variables stored in a simulation.  These variables are used to
compile JIT input files.

refs #104
This commit is contained in:
Alex Lin 2015-08-05 14:15:39 -05:00
parent 8fb1b72011
commit 119e7908d3
2 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,8 @@ sub gte (@) {
$def{"TRICK_PRINT_CMD"} = "lpr" ;
$def{"TRICK_PRINTER_NAME"} = "" ;
$def{"TRICK_SFLAGS"} = "" ;
$def{"TRICK_SYSTEM_CFLAGS"} = "" ;
$def{"TRICK_SYSTEM_CXXFLAGS"} = "" ;
$def{"TRICK_USER_HOME"} = "$ENV{HOME}/trick_sims" ;
$def{"TRICK_USER_CSHRC"} = "$ENV{HOME}/.Trick_user_cshrc" ;
$def{"TRICK_USER_LINK_LIBS"} = "" ;

View File

@ -137,6 +137,7 @@ int Trick::JITInputFile::compile(std::string file_name) {
// rule to compile cpp file
outfile << object_fullpath_name << ": " << file_name << std::endl ;
outfile << "\t" << get_trick_env((char *)"TRICK_CPPC") << " " << get_trick_env((char *)"TRICK_CXXFLAGS") ;
outfile << " " << get_trick_env((char *)"TRICK_SYSTEM_CXXFLAGS") ;
outfile << " -MMD -c -fPIC -o $@ $<" << std::endl << std::endl ;
// rule to clean
outfile << "clean:" << std::endl ;