aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/build.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/build.cpp b/src/build.cpp
index c92d804..e3ead80 100644
--- a/src/build.cpp
+++ b/src/build.cpp
@@ -4,6 +4,8 @@
4#include "bu/archive.h" 4#include "bu/archive.h"
5#include "bu/file.h" 5#include "bu/file.h"
6 6
7#include <stdlib.h>
8
7subExceptionDef( BuildException ); 9subExceptionDef( BuildException );
8 10
9Build::Build() : 11Build::Build() :
@@ -19,7 +21,7 @@ Build::~Build()
19 { 21 {
20 try 22 try
21 { 23 {
22 Bu::File f( sCacheName.c_str(), "wb" ); 24 Bu::File f( sCacheName.c_str(), Bu::File::Write );
23 Bu::Archive ar( f, Bu::Archive::save ); 25 Bu::Archive ar( f, Bu::Archive::save );
24 26
25 ar << cRequires; 27 ar << cRequires;
@@ -41,7 +43,7 @@ void Build::setCache( const std::string &sFileName )
41 43
42 try 44 try
43 { 45 {
44 Bu::File f( sCacheName.c_str(), "rb" ); 46 Bu::File f( sCacheName.c_str(), Bu::File::Read );
45 Bu::Archive ar( f, Bu::Archive::load ); 47 Bu::Archive ar( f, Bu::Archive::load );
46 48
47 ar >> cRequires; 49 ar >> cRequires;