Enable debug symbols in libpico.a

parent 7bfffed6
No preview for this file type
......@@ -6,6 +6,7 @@ include(pico_sdk_import.cmake)
project(pico_lib C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
# Initialize the SDK
pico_sdk_init()
......@@ -16,7 +17,6 @@ target_compile_definitions(pico PUBLIC
PICO_PRINTF_ALWAYS_INCLUDED=1
)
target_link_libraries(pico
boot_stage2
hardware_adc
......
......@@ -3,7 +3,7 @@ rm -rf build
mkdir build
cd build
PICO_SDK_PATH=../../pico-sdk/ PATH="$(cd ../../system/arm-none-eabi/bin; pwd):$PATH" cmake ..
make
make -j32
cp libpico.a ../../lib/.
cp generated/pico_base/pico/version.h ../../pico_base/pico/.
cd ..
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment