osElfTarget should default to False (#5733)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 4 Jan 2012 11:39:55 +0000 (11:39 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 4 Jan 2012 13:05:45 +0000 (13:05 +0000)
commita8b8d657807ff89fb94aecaefd65b6ab3e3b39e0
tree08da85222b1b651fe2ada139e09313d9d3e0c390
parent8387f0198e7a925d9d0754b2befb021ffa1307d7
osElfTarget should default to False (#5733)

Another portabilty regression: before Platform we used to use elf_OBJ_FORMAT:

 #if linux_TARGET_OS || freebsd_TARGET_OS || openbsd_TARGET_OS || solaris2_TARGET_OS
 #define elf_OBJ_FORMAT 1
 #endif

which defaults to undefined on unknown platforms.  Defaulting to
non-ELF is correct, it just means that we won't rely on ELF-specific
functionality.  I've added a comment to explain that.
compiler/utils/Platform.hs