# compiler: disallow \`align\` etc annotations on comptime-only globals · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/eac87ea8d646ccf07d25152649a9ff9ede23fc3d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: eac87ea8d646ccf07d25152649a9ff9ede23fc3d

Requested commit: eac87ea8d646ccf07d25152649a9ff9ede23fc3d

Commit: eac87ea8d646ccf07d25152649a9ff9ede23fc3d

Tree: 5490d77c42080daec9443a889703f6c4d46dfc69

Author: mlugg

Committer: mlugg

## Message

```
compiler: disallow `align` etc annotations on comptime-only globals

This includes function aliases, but not function declarations.

Also, re-introduce a target check for function alignment which was
inadvertently removed in the prior commit.

```

## Parents

- [7408679234ae84afaf0130fb21c49b031ef52e3c](https://git.cafe/gitcafe/zig/commit/7408679234ae84afaf0130fb21c49b031ef52e3c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/eac87ea8d646ccf07d25152649a9ff9ede23fc3d?format=markdown)
