diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | tasks.cc | 7 | 
2 files changed, 8 insertions, 1 deletions
| @@ -19,7 +19,7 @@ $(DEPFILES):  include $(wildcard $(DEPFILES)) -CXXFLAGS = -g -O3 -std=c++17 -I. +CXXFLAGS = -Wall -g -O3 -std=c++17 -I.  %.o: %.cc  	g++ -MMD $(CXXFLAGS) -c $< -o $@ @@ -53,6 +53,10 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,  	switch(target_type)  	{ +	case TargetType::Auto: +		// The target_type cannot be Auto +		break; +  	case TargetType::StaticLibrary:  		tasks.emplace_back(std::make_shared<TaskAR>(config, settings, config.target,  		                                            objects)); @@ -72,6 +76,9 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,  		tasks.emplace_back(std::make_shared<TaskLD>(config, settings, config.target,  		                                            objects));  		break; + +	case TargetType::Object: +		break;  	}  	return tasks; | 
