diff --git a/crates/algorithms/algorithms-c/project.yml b/crates/algorithms/algorithms-c/project.yml index cead82f..f1f38a6 100755 --- a/crates/algorithms/algorithms-c/project.yml +++ b/crates/algorithms/algorithms-c/project.yml @@ -129,11 +129,12 @@ :use_test_definition: FALSE # Configure additional command line flags provided to tools used in each build step -# :flags: -# :release: -# :compile: # Add '-Wall' and '--02' to compilation of all files in release target -# - -Wall -# - --O2 +:flags: + :release: + :compile: # Add '-Wall' and '--02' to compilation of all files in release target + - -Wall + - -O3 + - -g # :test: # :compile: # '(_|-)special': # Add '-pedantic' to compilation of all files in all test executables with '_special' or '-special' in their names @@ -383,8 +384,6 @@ :release_compiler: :executable: "#{ENV['CC']}" :arguments: - - "-g" - - "-Wall" - "-c" - "${1}" - "-o" diff --git a/crates/algorithms/algorithms-c/test/crc/test_crc32.c b/crates/algorithms/algorithms-c/test/crc/test_crc32.c index 692f109..88926d7 100755 --- a/crates/algorithms/algorithms-c/test/crc/test_crc32.c +++ b/crates/algorithms/algorithms-c/test/crc/test_crc32.c @@ -10,4 +10,5 @@ void tearDown(void) {} void test_crc32_check(void) { TEST_ASSERT_EQUAL_INT(crc32_checksum(CRC_CHECK_DATA, CRC_CHECK_DATA_LEN), 0xCBF43926); + TEST_ASSERT_EQUAL_INT(crc32_checksum("Hello World", 11), 1243066710); }