Skip to content

Commit 007e5ab

Browse files
committed
Bump version for v4.0
1 parent 639860d commit 007e5ab

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88
### Language Support
9+
### General Features
10+
### Improvements
11+
### Fixes
12+
13+
14+
## [v4.0] - 2023-08-10
15+
### Language Support
916
* Finished full support for user-defined primitives by adding error checking for table entries
1017
* 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).
1118
* Added support for net aliases

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
2828
include(gitversion)
2929
get_git_version(SLANG_VERSION_PATCH SLANG_VERSION_HASH)
3030

31-
set(SLANG_VERSION_MAJOR 3)
31+
set(SLANG_VERSION_MAJOR 4)
3232
set(SLANG_VERSION_MINOR 0)
3333
set(SLANG_VERSION_STRING
3434
"${SLANG_VERSION_MAJOR}.${SLANG_VERSION_MINOR}.${SLANG_VERSION_PATCH}")

tests/unittests/DriverTests.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ TEST_CASE("Driver report macros") {
189189
CHECK(driver.processOptions());
190190
driver.reportMacros();
191191

192-
CHECK("\n" + OS::capturedStdout == R"(
192+
CHECK(("\n" + OS::capturedStdout).starts_with(R"(
193193
BAR `__FILE__
194194
FOO `BAR
195195
ID(x) x
@@ -209,9 +209,10 @@ SV_COV_STATEMENT 22
209209
SV_COV_STOP 1
210210
SV_COV_TOGGLE 23
211211
__slang__ 1
212-
__slang_major__ 3
213-
__slang_minor__ 0
214-
)");
212+
)"));
213+
214+
CHECK(stdoutContains("__slang_major__"));
215+
CHECK(stdoutContains("__slang_minor__"));
215216
}
216217

217218
TEST_CASE("Driver single-unit parsing") {

0 commit comments

Comments
 (0)