Просмотр исходного кода

Create compiler only if requested

Daniele Bartolini 10 лет назад
Родитель
Сommit
8881388d04
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/device/device.cpp

+ 1 - 1
src/device/device.cpp

@@ -177,9 +177,9 @@ void Device::init()
 	bool do_continue = true;
 
 #if CROWN_PLATFORM_LINUX || CROWN_PLATFORM_WINDOWS
-	_bundle_compiler = CE_NEW(_allocator, BundleCompiler)(_device_options._source_dir, _device_options._bundle_dir);
 	if (_device_options._do_compile)
 	{
+		_bundle_compiler = CE_NEW(_allocator, BundleCompiler)(_device_options._source_dir, _device_options._bundle_dir);
 		bool success = _bundle_compiler->compile_all(_device_options._platform);
 		do_continue = success && _device_options._do_continue;
 	}