Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #91 progress. #194

Merged
merged 36 commits into from
Jun 7, 2021
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
31c5110
resetting cpp baseline to be the c templates
thirtytwobits Jan 30, 2021
7571c2e
test_support_headers generates without error
thirtytwobits Jan 31, 2021
3e193c8
various progress
thirtytwobits Feb 7, 2021
1f1c645
refocusing on POD first
thirtytwobits Feb 7, 2021
6d3ab90
adding python 3.9 testing
thirtytwobits Feb 10, 2021
c424dcf
progress on c++ POD generation
thirtytwobits Feb 10, 2021
d57a395
bunch of whitespace fixes
thirtytwobits Feb 16, 2021
9b2e764
fixing c build
thirtytwobits Feb 22, 2021
16ff4c7
fixing builds and adding platoform info to generated headers
thirtytwobits Feb 22, 2021
5e9431c
starting a variable-length array type
thirtytwobits Feb 27, 2021
714b0cd
Adding 01heap and updating other submodules
thirtytwobits Feb 28, 2021
993986b
adding bracket operator
thirtytwobits Feb 28, 2021
34f20d6
good progress on the variable length array type
thirtytwobits Feb 28, 2021
3ccd5ca
A lot of stuff in this one:
thirtytwobits Mar 12, 2021
32a75f5
fixing up noexcept specifiers
thirtytwobits Mar 13, 2021
8e93b8b
adding array type override
thirtytwobits Mar 14, 2021
5a9b016
version bump
thirtytwobits Mar 14, 2021
70ac699
fixing git submodules (I think)
thirtytwobits Mar 15, 2021
36b248c
fixing python tests
thirtytwobits Mar 17, 2021
79ab99c
fixing a build problem with unity
thirtytwobits Mar 17, 2021
5189e4b
fixing accidental typo
thirtytwobits Mar 17, 2021
1ee1d84
fixing typing error
thirtytwobits Mar 17, 2021
c73d4d0
progress on fixing up build
thirtytwobits Mar 17, 2021
5cdce00
fixing script permissions
thirtytwobits Mar 17, 2021
b2f0039
disabling coverage for now
thirtytwobits Mar 18, 2021
31edfe4
Fixing GCC 9 and earlier syntax
thirtytwobits Mar 21, 2021
803445f
parallelizing python builds
thirtytwobits Mar 22, 2021
ff3c0b4
fixing script permissions
thirtytwobits Mar 22, 2021
9d24d43
increasing host parallelism
thirtytwobits Mar 23, 2021
808f36c
fixing concurrency issues with native build
thirtytwobits Mar 23, 2021
fd96a1b
fixing my verify overrides.
thirtytwobits Mar 24, 2021
bc478f5
more responses based on the PR
thirtytwobits May 11, 2021
f91de11
More fixups per Pavels comments
thirtytwobits May 31, 2021
f3ae63f
last bits o fixup
thirtytwobits Jun 6, 2021
3309f9b
removing unneeded macro
thirtytwobits Jun 7, 2021
da79d79
disallowing array for var array
thirtytwobits Jun 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing c build
thirtytwobits committed May 7, 2021
commit 9b2e764266b9b576e5e1b56d2380ccee79f09bc3
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -128,7 +128,8 @@
"utility": "cpp",
"valarray": "cpp",
"vector": "cpp",
"serialization.h": "c"
"serialization.h": "c",
"struct__0_1.h": "c"
},
"python.linting.mypyArgs": [
"--config-file=${workspaceFolder}/tox.ini"
6 changes: 5 additions & 1 deletion src/nunavut/lang/__init__.py
Original file line number Diff line number Diff line change
@@ -42,7 +42,11 @@ def _narrow(value: str) -> typing.Any:
pass
if value.lower() == 'true' or value.lower() == 'false':
return bool(value)
return str(value)
strvalue = str(value)
if strvalue.startswith('"') and strvalue.endswith('"'):
return strvalue[1:-1]
else:
return strvalue

value_as_dict = dict()
value_pairs = value.strip().split('\n')
2 changes: 1 addition & 1 deletion src/nunavut/lang/cpp/support/serialization.j2
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ static_assert(__cplusplus < 201100L,
{% if not options.omit_float_serialization_support %}
#include <cmath> // For isfinite().
{% endif -%}
#include <stdint>
#include <cstdint>

static_assert(sizeof({{ typename_unsigned_bit_length }}) >= sizeof({{ typename_unsigned_length }}),
"The bit-length type used by Nunavut, {{ typename_unsigned_bit_length }}, "
4 changes: 2 additions & 2 deletions src/nunavut/lang/properties.ini
Original file line number Diff line number Diff line change
@@ -205,8 +205,8 @@ named_types =
float_32 = float
float_64 = double
named_values =
true = true
false = false
true = "true"
false = "false"
null = NULL
options =
target_endianness = any
15 changes: 8 additions & 7 deletions verification/cmake/utils.cmake
Original file line number Diff line number Diff line change
@@ -93,13 +93,14 @@ function(define_native_unit_test

add_executable(${ARG_TEST_NAME} ${ARG_TEST_SOURCE})

string(REPLACE ";" " " LOCAL_${ARG_TEST_NAME}_COMPILE_FLAGS "${ARG_EXTRA_COMPILE_FLAGS}")

set_source_files_properties(${ARG_TEST_SOURCE}
PROPERTIES
COMPILE_FLAGS
${LOCAL_${ARG_TEST_NAME}_COMPILE_FLAGS}
)
if(NOT "${ARG_EXTRA_COMPILE_FLAGS}" STREQUAL "")
string(REPLACE ";" " " LOCAL_${ARG_TEST_NAME}_COMPILE_FLAGS "${ARG_EXTRA_COMPILE_FLAGS}")
set_source_files_properties(${ARG_TEST_SOURCE}
PROPERTIES
COMPILE_FLAGS
${LOCAL_${ARG_TEST_NAME}_COMPILE_FLAGS}
)
endif()

set(LOCAL_${ARG_TEST_NAME}_LINK_LIBS "")