Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Fix macOS build failure on SDK 10.12 and host crash. #232

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Fix macOS build failure on SDK 10.12 and host crash. #232

merged 1 commit into from
Aug 16, 2019

Conversation

coxuintel
Copy link
Contributor

@coxuintel coxuintel commented Aug 14, 2019

Macro panic() is expand to postfix with panic line number, when passing
a va_list to panic(), the macro can't expand correctly.
Since panic() is now wrapped with hax_panic(), the line number always
points inside hax_panic() which isn't necessary.
Use panic_plain instead.

Before hax logger refine, hax_log_level() incorrectly use printf() for
va_list. However it should use vprintf(). The new hax_log() inherits
from hax_log_level() but doens't fix printf()->vprintf().

Signed-off-by: Colin Xu colin.xu@intel.com

@HaxmCI HaxmCI added the CI:Build Fail CI:Build Fail label Aug 14, 2019
Macro panic() is expand to postfix with panic line number, when passing
a va_list to panic(), the macro can't expand correctly.
Since panic() is now wrapped with hax_panic(), the line number always
points inside hax_panic() which isn't necessary.
Directly use (panic) instead of the macro.

Before hax logger refine, hax_log_level() incorrectly use printf() for
va_list. However it should use vprintf(). The new hax_log() inherits
from hax_log_level() but doens't fix printf()->vprintf().

Signed-off-by: Colin Xu <colin.xu@intel.com>
@coxuintel coxuintel changed the title Fix macOS build failure on SDK 10.12. Fix macOS build failure on SDK 10.12 and host crash. Aug 15, 2019
@HaxmCI HaxmCI added CI:Build Pass CI:Build Pass CI:Mac Test Pass CI:Mac Test Pass and removed CI:Build Fail CI:Build Fail labels Aug 16, 2019
@wcwang wcwang merged commit 3e57d8d into intel:master Aug 16, 2019
@coxuintel coxuintel deleted the mac_build branch December 30, 2019 01:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI:Build Pass CI:Build Pass CI:Mac Test Pass CI:Mac Test Pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants