aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-12 17:30:23 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-12 17:30:23 +0000
commite2c430b237da5c0229fd8e0832eedc3b85045ec0 (patch)
tree2f14481a9622c1d9ee913456f12ffb6cdfd53eef /src/main.cpp
parentdaa9ab77fa7ff88a77e028270ec32fa4f3e6d3bb (diff)
downloadbuild-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 'src/main.cpp')
-rw-r--r--src/main.cpp25
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 //{