Skip to content

Commit 76b1572

Browse files
committed
update unit testing documentation for Mac OS Mojave
1 parent 8bf51be commit 76b1572

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

UNITTESTS/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Unit tests test code in small sections on a host machine. Unlike other testing t
1111
Please install the following dependencies to use Mbed OS unit testing.
1212

1313
- GNU toolchains.
14-
- GCC 6 or later. We recommend you use MinGW-W64 on Windows, but any Windows port of the above GCC versions works.
14+
- GCC 6 or later. We recommend you use MinGW-W64 on Windows, but any Windows port of the above GCC versions works. Default compilers can be used on Mac OS instead of GCC to shorten build times, but code coverage results can then differ.
1515
- CMake 3.0 or newer.
1616
- Python 2.7.x, 3.5 or newer.
1717
- Pip 10.0 or newer.
@@ -35,7 +35,8 @@ Detailed instructions for supported operating systems are below.
3535
#### Installing dependencies on macOS
3636

3737
1. Install [Homebrew](https://brew.sh/).
38-
1. Install GCC compilers and CMake with: `brew install gcc cmake`.
38+
1. Install Xcode Command Line Tools with `xcode-select --install`.
39+
1. Install CMake with: `brew install cmake`.
3940
1. Install Python and Pip:
4041

4142
```
@@ -44,6 +45,7 @@ Detailed instructions for supported operating systems are below.
4445
```
4546

4647
1. Install Gcovr and [Mbed CLI](https://os.mbed.com/docs/latest/tools/developing-arm-mbed-cli.html) with `pip install "gcovr>=4.1" mbed-cli`.
48+
1. (Optional) Install GCC with `brew install gcc`.
4749

4850
#### Installing dependencies on Windows
4951

@@ -200,3 +202,6 @@ Use Mbed CLI to generate code coverage reports. For advanced use, follow these s
200202

201203
**Problem:** Virus protection identifies files generated by CMake as malicious and quarantines the files on Windows.
202204
* **Solution**: Restore the false positive files from the quarantine.
205+
206+
**Problem:** CMake compiler check fails on Mac OS Mojave when using GCC-8.
207+
* **Solution**: Make sure gnm (binutils) is not installed. Uninstall binutils with `brew uninstall binutils`.

0 commit comments

Comments
 (0)