mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Init command will now add test-sources to project.json #1520
This commit is contained in:
committed by
Christoffer Lerno
parent
e6b6edefaf
commit
61a76bb834
@@ -4,6 +4,7 @@
|
||||
|
||||
### Changes / improvements
|
||||
- Allow splat in initializers.
|
||||
- Init command will now add `test-sources` to `project.json` #1520
|
||||
|
||||
### Fixes
|
||||
- Fix bug where `a > 0 ? f() : g()` could cause a compiler crash if both returned `void!`.
|
||||
|
||||
@@ -44,6 +44,7 @@ const char *project_default_keys[][2] = {
|
||||
{"single-module", "Compile all modules together, enables more inlining."},
|
||||
{"soft-float", "Output soft-float functions."},
|
||||
{"sources", "Paths to project sources for all targets."},
|
||||
{"test-sources", "Paths to project test sources for all targets."},
|
||||
{"strip-unused", "Strip unused code and globals from the output. (default: true)"},
|
||||
{"symtab", "Sets the preferred symtab size."},
|
||||
{"target", "Compile for a particular architecture + OS target."},
|
||||
@@ -116,6 +117,8 @@ const char* project_target_keys[][2] = {
|
||||
{"soft-float", "Output soft-float functions."},
|
||||
{"sources", "Additional paths to project sources for the target."},
|
||||
{"sources-override", "Paths to project sources for this target, overriding global settings."},
|
||||
{"test-sources", "Additional paths to project test sources for the target."},
|
||||
{"test-sources-override", "Paths to project test sources for this target, overriding global settings."},
|
||||
{"strip-unused", "Strip unused code and globals from the output. (default: true)"},
|
||||
{"symtab", "Sets the preferred symtab size."},
|
||||
{"target", "Compile for a particular architecture + OS target."},
|
||||
|
||||
@@ -20,6 +20,8 @@ const char* JSON_EXE =
|
||||
" \"version\": \"0.1.0\",\n"
|
||||
" // Sources compiled for all targets.\n"
|
||||
" \"sources\": [ \"src/**\" ],\n"
|
||||
" // Test sources compiled for all targets.\n"
|
||||
" \"test-sources\": [ \"test/**\" ],\n"
|
||||
" // C sources if the project also compiles C sources\n"
|
||||
" // relative to the project file.\n"
|
||||
" // \"c-sources\": [ \"csource/**\" ],\n"
|
||||
@@ -63,6 +65,8 @@ const char* JSON_STATIC =
|
||||
" \"version\": \"0.1.0\",\n"
|
||||
" // Sources compiled for all targets.\n"
|
||||
" \"sources\": [ \"src/**\" ],\n"
|
||||
" // Test sources compiled for all targets.\n"
|
||||
" \"test-sources\": [ \"test/**\" ],\n"
|
||||
" // C sources if the project also compiles C sources\n"
|
||||
" // relative to the project file.\n"
|
||||
" // \"c-sources\": [ \"csource/**\" ],\n"
|
||||
@@ -104,6 +108,8 @@ const char* JSON_DYNAMIC =
|
||||
" \"version\": \"0.1.0\",\n"
|
||||
" // Sources compiled for all targets.\n"
|
||||
" \"sources\": [ \"src/**\" ],\n"
|
||||
" // Test sources compiled for all targets.\n"
|
||||
" \"test-sources\": [ \"test/**\" ],\n"
|
||||
" // C sources if the project also compiles C sources\n"
|
||||
" // relative to the project file.\n"
|
||||
" // \"c-sources\": [ \"csource/**\" ],\n"
|
||||
|
||||
Reference in New Issue
Block a user