]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/X64/ProcessorBind.h: Fix EmulatorPkg X64 XCODE5
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 1 Aug 2019 06:07:55 +0000 (23:07 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Tue, 6 Aug 2019 16:29:38 +0000 (09:29 -0700)
commitc30fbac4e210a81695a7708997241de0535dbc28
tree9772fdcee4c116b13107d829736796c98c4002f2
parent538d8aaaf3b6f75f0255ad11904dc4040e2cb1d5
MdePkg/X64/ProcessorBind.h: Fix EmulatorPkg X64 XCODE5

https://bugzilla.tianocore.org/show_bug.cgi?id=2046

Make sure all libs that should be dynamically linked
are dynamically linked when XCODE5 compiler is used.
A previous change introduced the following pragma:

    #pragma GCC visibility push (hidden)

When the EmulatorPkg is built using XCODE5 toolchain
for X64, this pragma is included and it generates a
linker error when building the Unix Host module.  This
change uses !defined(__APPLE__) to prevent the use of
this pragma when building EmulatorPkg/Unix/Host.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdePkg/Include/X64/ProcessorBind.h