Skip to content

Commit 1a2cc2b

Browse files
committed
[ELF] Exclude sizeof(InputSection) to _WIN32
Structs with delicate packing are often larger in MSVC than Itanium. 099a52f did not make sizeof(InputSection) smaller for MSVC. Just exclude MSVC.
1 parent a0ef12c commit 1a2cc2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/ELF/InputSection.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ class PotentialSpillSection : public InputSection {
475475
}
476476
};
477477

478+
#ifndef _WIN32
478479
static_assert(sizeof(InputSection) <= 152, "InputSection is too big");
480+
#endif
479481

480482
class SyntheticSection : public InputSection {
481483
public:

0 commit comments

Comments
 (0)