diff options
author | Brad King <brad.king@kitware.com> | 2008-05-13 14:34:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-13 14:34:24 (GMT) |
commit | 9eee4149ec6e2e69de52c81f7898c993eaa259f2 (patch) | |
tree | ecdde5da6db16bc04b1caf1a19c833f1975cb2fd /Source | |
parent | d707719d577675e7f870d79589c97952607c8040 (diff) | |
download | CMake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.zip CMake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.tar.gz CMake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.tar.bz2 |
BUG: When byte order is not known at compile time make sure NeedSwap in cmELF is still initialized.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmELF.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index cdba467..083470c 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -85,6 +85,8 @@ public: this->NeedSwap = (this->ByteOrder == ByteOrderMSB); #elif cmsys_CPU_ENDIAN_ID == cmsys_CPU_ENDIAN_ID_BIG this->NeedSwap = (this->ByteOrder == ByteOrderLSB); +#else + this->NeedSwap = false; // Final decision is at runtime anyway. #endif // We have not yet loaded the section info. |