Skip to content

[Bug] Can not compile on M1 MacOS because malloc.h was included in allocator.h #38599

@macroguo-ghy

Description

@macroguo-ghy

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master branch

What's Wrong?

compile fail

 fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~

What You Expected?

success

How to Reproduce?

./build.sh --be --fe

Anything Else?

Introduced by this PR #37234

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions