Skip to content

Commit

Permalink
Bump version for v4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Aug 10, 2023
1 parent 639860d commit 007e5ab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Language Support
### General Features
### Improvements
### Fixes


## [v4.0] - 2023-08-10
### Language Support
* Finished full support for user-defined primitives by adding error checking for table entries
* Support for whitespace between the two characters of the dist weight operators has been added for compatibility with other tools -- this is an error by default but can be downgraded as needed. See [-Wsplit-distweight-op](https://sv-lang.com/warning-ref.html#split-distweight-op).
* Added support for net aliases
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
include(gitversion)
get_git_version(SLANG_VERSION_PATCH SLANG_VERSION_HASH)

set(SLANG_VERSION_MAJOR 3)
set(SLANG_VERSION_MAJOR 4)
set(SLANG_VERSION_MINOR 0)
set(SLANG_VERSION_STRING
"${SLANG_VERSION_MAJOR}.${SLANG_VERSION_MINOR}.${SLANG_VERSION_PATCH}")
Expand Down
9 changes: 5 additions & 4 deletions tests/unittests/DriverTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ TEST_CASE("Driver report macros") {
CHECK(driver.processOptions());
driver.reportMacros();

CHECK("\n" + OS::capturedStdout == R"(
CHECK(("\n" + OS::capturedStdout).starts_with(R"(
BAR `__FILE__
FOO `BAR
ID(x) x
Expand All @@ -209,9 +209,10 @@ SV_COV_STATEMENT 22
SV_COV_STOP 1
SV_COV_TOGGLE 23
__slang__ 1
__slang_major__ 3
__slang_minor__ 0
)");
)"));

CHECK(stdoutContains("__slang_major__"));
CHECK(stdoutContains("__slang_minor__"));
}

TEST_CASE("Driver single-unit parsing") {
Expand Down

0 comments on commit 007e5ab

Please sign in to comment.