diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 17:30:23 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 17:30:23 +0000 |
commit | e2c430b237da5c0229fd8e0832eedc3b85045ec0 (patch) | |
tree | 2f14481a9622c1d9ee913456f12ffb6cdfd53eef /src/main.cpp | |
parent | daa9ab77fa7ff88a77e028270ec32fa4f3e6d3bb (diff) | |
download | build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.tar.gz build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.tar.bz2 build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.tar.xz build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.zip |
Added cache functionality, which is really nice, things go much faster now.
Diffstat (limited to '')
-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 | //{ |