-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Mac and Windows compilation error (#555)
Description The build combination test was failing on Mac as we were compiling Windows port which uses some assembly instructions were not available on Mac. It also failed on Windows most likely because it was never built on Windows. This PR changes the build to use POSIX port on Mac and Linux and Windows port on Windows platform. It also removes stubs which are not needed anymore. Test Steps Test Command - ``` cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=ENABLE_ALL make -C test/build-combination/build/ ``` By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
- Loading branch information
Showing
6 changed files
with
110 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Build Instructions | ||
|
||
This test aims at finding only compilation issues and as a result, the | ||
generated binary is not runnable. | ||
|
||
## UNIX (Linux and Mac) | ||
|
||
All the CMake commands are to be run from the root of the repository. | ||
|
||
* Build checks (Enable all functionalities) | ||
``` | ||
cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=ENABLE_ALL | ||
make -C test/build-combination/build/ | ||
``` | ||
|
||
* Build checks (Disable all functionalities) | ||
``` | ||
cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=DISABLE_ALL | ||
make -C test/build-combination/build/ | ||
``` | ||
|
||
* Build checks (Default configuration) | ||
``` | ||
cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=DEFAULT_CONF | ||
make -C test/build-combination/build/ | ||
``` | ||
|
||
## Windows | ||
|
||
All the CMake commands are to be run from the root of the repository. | ||
|
||
* Build checks (Enable all functionalities) | ||
``` | ||
cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=ENABLE_ALL -DCMAKE_GENERATOR_PLATFORM=Win32 | ||
``` | ||
Open the generated Visual Studio Solution file `test\build-combination\build\FreeRTOS-Plus-TCP Build Combination.sln` | ||
in Visual Studio and click `Build --> Build Solution`. | ||
|
||
* Build checks (Disable all functionalities) | ||
``` | ||
cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=ENABLE_ALL -DCMAKE_GENERATOR_PLATFORM=Win32 | ||
``` | ||
Open the generated Visual Studio Solution file `test\build-combination\build\FreeRTOS-Plus-TCP Build Combination.sln` | ||
in Visual Studio and click `Build --> Build Solution`. | ||
|
||
* Build checks (Default configuration) | ||
``` | ||
cmake -S test/build-combination -B test/build-combination/build/ -DTEST_CONFIGURATION=ENABLE_ALL -DCMAKE_GENERATOR_PLATFORM=Win32 | ||
``` | ||
Open the generated Visual Studio Solution file `test\build-combination\build\FreeRTOS-Plus-TCP Build Combination.sln` | ||
in Visual Studio and click `Build --> Build Solution`. |