From Craig Silverstein: rework option handling to make it easier to

add a new option.
This commit is contained in:
Ian Lance Taylor
2008-03-04 23:10:38 +00:00
parent 3954eb47e1
commit ee1fe73e11
8 changed files with 1197 additions and 1679 deletions

View File

@@ -112,7 +112,7 @@ Output_compressed_section::set_final_data_size()
this->write_to_postprocessing_buffer();
bool success = false;
if (this->options_->zlib_compress_debug_sections())
if (strcmp(this->options_->compress_debug_sections(), "zlib") == 0)
success = zlib_compress(uncompressed_data, uncompressed_size,
&this->data_, &compressed_size);
if (success)