summaryrefslogtreecommitdiff
path: root/rld-cc.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-08-05 23:01:15 +1000
committerChris Johns <chrisj@rtems.org>2014-08-05 23:01:15 +1000
commitf40cea54f3e7ef474552136b6f4b29cdb3b5c0f3 (patch)
tree961a51588821aa1ab1f712a314c7261324b3727c /rld-cc.cpp
parent13ee8dc9506807fd3fb253b52583611754cb719e (diff)
Fix temporary file handling and add tempfile write support.
Move the static objects into the rld-process file and change the clean up to a call. Add support to write to tempfiles.
Diffstat (limited to 'rld-cc.cpp')
-rw-r--r--rld-cc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rld-cc.cpp b/rld-cc.cpp
index ed48d1c..38d3093 100644
--- a/rld-cc.cpp
+++ b/rld-cc.cpp
@@ -99,7 +99,7 @@ namespace rld
while (true)
{
std::string line;
- out.getline (line);
+ out.read_line (line);
if (line.size () == 0)
break;
if (match_and_trim ("install: ", line, install_path))
@@ -143,7 +143,7 @@ namespace rld
if (rld::verbose () >= RLD_VERBOSE_DETAILS)
out.output ("cc", std::cout, true);
out.open ();
- out.get (path);
+ out.read (path);
out.close ();
if (rld::verbose () >= RLD_VERBOSE_DETAILS)
std::cout << "cc::libpath: " << name << " -> " << path << std::endl;