This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/visibility.md
2021-03-12 22:10:24 +01:00

822 B

Sets the default visibility for exported symbols in a shared object library.

visibility "switch"

By default, the generated project files will use the compilers default settings symbol visibility when building shared object libraries.

Parameters

switch is an identifier for symbol information.

Option Availability
Default gcc
Hidden gcc
Inline gcc

Applies To

Project configurations.

Availability

Premake 5.0 or later.

Examples

This project hides exported symbols for release builds.

project "MyProject"
    filter "configurations:Release"
        visibility "Hidden"

See Also