forked from maxgerhardt/platformio-with-clang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
44 lines (41 loc) · 1.99 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
# standard
[env:teensylc_gcc]
platform = teensy
board = teensylc
framework = arduino
upload_protocol = teensy-cli
; help clangd find standard library headers
build_flags =
-I$PROJECT_PACKAGES_DIR/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/9.3.1
-I$PROJECT_PACKAGES_DIR/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/9.3.1/arm-none-eabi
-I$PROJECT_PACKAGES_DIR/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/9.3.1/backward
-I$PROJECT_PACKAGES_DIR/toolchain-gccarmnoneeabi/lib/gcc/arm-none-eabi/9.3.1/include
-I$PROJECT_PACKAGES_DIR/toolchain-gccarmnoneeabi/lib/gcc/arm-none-eabi/9.3.1/include-fixed
-I$PROJECT_PACKAGES_DIR/toolchain-gccarmnoneeabi/arm-none-eabi/include
# add compiler package, add teensy core with patches, override compiler commands
[env:teensylc_clang]
platform = teensy
board = teensylc
framework = arduino
upload_protocol = teensy-cli
extra_scripts = use_clang.py
; help clangd find standard library headers; dump them e.g. with:
; bin/clang++ -v -x c++ --config armv6m_soft_nofp_nosys -
build_flags =
-I/home/ez/Downloads/toolchain-clang-linux_x86_64-1.130001.220312/lib/clang/13.0.0/include
-I/home/ez/Downloads/toolchain-clang-linux_x86_64-1.130001.220312/bin/../lib/clang-runtimes/armv6m_soft_nofp/include/c++/v1
-I/home/ez/Downloads/toolchain-clang-linux_x86_64-1.130001.220312/bin/../lib/clang-runtimes/armv6m_soft_nofp/include
; point toolchain-clang to where you downloaded the toolchain-clang package
; as linked in README.md
platform_packages =
toolchain-clang@file://C:\Users\Max\Downloads\toolchain-clang
framework-arduinoteensy@https://github.com/maxgerhardt/teensy-core-pio-package.git#clang