diff options
Diffstat (limited to 'task.cc')
-rw-r--r-- | task.cc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -84,6 +84,8 @@ std::vector<std::string> readDeps(const std::string& depFile) Task::Task(const BuildConfiguration& config, const Settings& settings, const std::string& source) + : config(config) + , settings(settings) { sourceFile = source; targetFile = settings.builddir / sourceFile.stem(); @@ -155,8 +157,9 @@ void Task::start() if(recompile) { std::string cmd = - "g++ -MMD -c " + std::string(sourceFile) + - " -o " + std::string(targetFile); + "g++ -MMD -c " + std::string(sourceFile) + " " + + config.cxxflags + " " + + "-o " + std::string(targetFile); std::cout << cmd << "\n"; if(system(cmd.data())) |