29 lines
431 B
Markdown
29 lines
431 B
Markdown
|
compileas
|
||
|
|
||
|
```lua
|
||
|
compileas "value"
|
||
|
```
|
||
|
|
||
|
### Parameters ###
|
||
|
|
||
|
`value` one of:
|
||
|
* `Default` - Compile based on file extensions that have been built into premake.
|
||
|
* `C` - Compile as a C source file.
|
||
|
* `C++` - Compile as a C++ source file.
|
||
|
|
||
|
### Applies To ###
|
||
|
|
||
|
The `workspace`, `project` or `file` scope.
|
||
|
|
||
|
### Availability ###
|
||
|
|
||
|
Premake 5.0.0 alpha 13 or later.
|
||
|
|
||
|
### Examples ###
|
||
|
|
||
|
```lua
|
||
|
filter { "files:**.c" }
|
||
|
compileas "C++"
|
||
|
```
|
||
|
|