|
1 | 1 |
|
2 | 2 | @rem |
3 | | -@rem Copyright Christopher Kormanyos 2014 - 2020. |
| 3 | +@rem Copyright Christopher Kormanyos 2014 - 2025. |
4 | 4 | @rem Distributed under the Boost Software License, |
5 | 5 | @rem Version 1.0. (See accompanying file LICENSE_1_0.txt |
6 | 6 | @rem or copy at http://www.boost.org/LICENSE_1_0.txt) |
|
12 | 12 | @rem build.bat directory_of_gcc_bin prefix_of_avr_gcc |
13 | 13 |
|
14 | 14 | @rem Usage example A, |
15 | | -@rem cd "C:\Users\User\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03" |
16 | | -@rem build.bat "C:\Users\User\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03\tools\Util\msys64\usr\local\gcc-11.2.0-avr\bin" avr |
| 15 | +@rem cd "C:\Users\ckorm\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03" |
| 16 | +@rem build.bat "C:\Users\ckorm\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03\tools\Util\msys64\usr\local\gcc-11.2.0-avr\bin" avr |
17 | 17 |
|
18 | 18 | @rem Usage example A1 (use a relative tool path), |
19 | | -@rem cd "C:\Users\User\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03" |
20 | | -@rem build.bat ".\tools\Util\msys64\usr\local\gcc-11.2.0-avr\bin" avr |
| 19 | +@rem cd "C:\Users\ckorm\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03" |
| 20 | +@rem build.bat ".\tools\Util\msys64\usr\local\gcc-15.1.0-avr\bin" avr |
21 | 21 |
|
22 | 22 | @rem Usage example B, |
23 | | -@rem cd "C:\Users\User\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03" |
24 | | -@rem build.bat "C:\Program Files (x86)\gcc-11.2.0-avr\bin" avr |
| 23 | +@rem cd "C:\Users\ckorm\Documents\Ks\uC_Software\Boards\real-time-cpp\examples\chapter02_03" |
| 24 | +@rem build.bat "C:\Program Files (x86)\gcc-15.1.0-avr\bin" avr |
25 | 25 |
|
26 | 26 |
|
27 | 27 | @set TOOL_PATH=%1 |
28 | 28 | @set TOOL_PREFIX=%2 |
29 | 29 |
|
30 | | -@set CFLAGS=-C -Wall -Wextra -pedantic -mmcu=atmega328p -fsigned-char -O2 -fno-exceptions -gdwarf-2 -ffunction-sections -fdata-sections |
31 | | -@set CPPFLAGS= -fno-rtti -fstrict-enums -fno-use-cxa-atexit -fno-use-cxa-get-exception-ptr -fno-nonansi-builtins -fno-threadsafe-statics -fno-enforce-eh-specs |
| 30 | +@set CFLAGS=-C -Wall -Wextra -Wpedantic -mmcu=atmega328p -fsigned-char -O2 -fno-exceptions -gdwarf-2 -ffunction-sections -fdata-sections |
| 31 | +@set CPPFLAGS= -std=c++11 -fno-rtti -fstrict-enums -fno-use-cxa-atexit -fno-use-cxa-get-exception-ptr -fno-nonansi-builtins -fno-threadsafe-statics -fno-enforce-eh-specs |
32 | 32 | @set CINCLUDES=-Isrc/util/STL_C++XX_stdfloat -Isrc/util/STL -Isrc -Isrc/mcal/avr |
33 | 33 |
|
34 | 34 | @echo. |
|
0 commit comments