Opened 3 years ago
Last modified 3 years ago
#67683 assigned defect
ld64-97: error: 'TARGET_OS_WATCH' is not defined, evaluates to 0
| Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.8.1 |
| Keywords: | snowleopard | Cc: | cooljeanius (Eric Gallager) |
| Port: | ld64 |
Description
In file included from src/other/ObjectDump.cpp:31:
In file included from src/ld/MachOReaderRelocatable.hpp:43:
In file included from src/ld/parsers/libunwind/DwarfInstructions.hpp:43:
In file included from src/ld/parsers/libunwind/AddressSpace.hpp:38:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_ld64/ld64-97/work/dyld-655.1.1/include/mach-o/dyld_priv.h:255:5: error: 'TARGET_OS_WATCH' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_WATCH
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_ld64/ld64-97/work/dyld-655.1.1/include/mach-o/dyld_priv.h:270:5: error: 'TARGET_OS_BRIDGE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_BRIDGE
^
Change History (2)
comment:1 Changed 3 years ago by jmroot (Joshua Root)
comment:2 Changed 3 years ago by cooljeanius (Eric Gallager)
| Cc: | cooljeanius added |
|---|
Note: See
TracTickets for help on using
tickets.

That warning has been promoted to an error in newer clang versions. The code is actually fine in this case, but the warning can be silenced by changing
#if FOOto#if defined(FOO) && FOO.