diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9106a74..712213b 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -72,19 +72,20 @@ int main( int argc, char *argv[] ) | |||
72 | Param prm; | 72 | Param prm; |
73 | prm.process( argc, argv ); | 73 | prm.process( argc, argv ); |
74 | 74 | ||
75 | BuildParser bld;//*prm.pViewer ); | 75 | BuildParser bld; |
76 | Build *pBuild; | ||
76 | 77 | ||
77 | //bld.setCache( prm.sCache ); | 78 | try |
78 | //try | 79 | { |
79 | //{ | 80 | pBuild = bld.load( prm.sFile.c_str() ); |
80 | Build *pBuild = bld.load( prm.sFile.c_str() ); | 81 | pBuild->setCache( prm.sCache ); |
81 | //} | 82 | } |
82 | //catch( BuildException &e ) | 83 | catch( BuildException &e ) |
83 | //{ | 84 | { |
84 | // fputs( e.what(), stderr ); | 85 | fputs( e.what(), stderr ); |
85 | // fputs( "\n", stderr ); | 86 | fputs( "\n", stderr ); |
86 | // return 1; | 87 | return 1; |
87 | //} | 88 | } |
88 | 89 | ||
89 | //if( prm.bDebug ) | 90 | //if( prm.bDebug ) |
90 | //{ | 91 | //{ |