diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-18 15:56:53 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-18 15:56:53 +0000 |
| commit | 197b83299229a6d8733b2b6b2b3397ea717fbb17 (patch) | |
| tree | e13c5fda6d0989870a934195f15fb4c925abbd3b /src/check_builtin.cpp | |
| parent | 8f13724a4b9782d7ac8e6a8037d0a44cfd41e240 (diff) | |
Add vendor:directx and vendor:darwin packages for documentation generation
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 1535f6644..fb7a6efce 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -248,8 +248,9 @@ bool check_builtin_objc_procedure(CheckerContext *c, Operand *operand, Ast *call String builtin_name = builtin_procs[id].name; if (build_context.metrics.os != TargetOs_darwin) { - error(call, "'%.*s' only works on darwin", LIT(builtin_name)); - return false; + if (!build_context.generate_docs) { // allow on doc generation (e.g. Metal stuff) + error(call, "'%.*s' only works on darwin", LIT(builtin_name)); + } } |