Skip to content

Commit

Permalink
Generate compile_commands.json in build directory (#54)
Browse files Browse the repository at this point in the history
* Generate compile_commands.json in build directory for use by RTags, clang tools etc.
* Fix some new CSPELL errors by adding to the allowed words
  • Loading branch information
sierrafoxtrot authored Mar 27, 2023
1 parent 26bbfbb commit 0e01314
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# srecord - Manipulate EPROM load files
# Copyright (C) 2018 - 2022 Scott Finneran
# Copyright (C) 2018 - 2023 Scott Finneran
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +20,9 @@ cmake_minimum_required(VERSION 3.22)
project(srecord VERSION "1.65")
set(CMAKE_BUILD_TYPE Release)

# Generate compile_commands.json for use by RTags, clang tools etc.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Headers are all relative to project root
include_directories(./)

Expand Down
2 changes: 2 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ flagWords:
# Some may be fixed by using better variable names in the code.
words:
- ABBE
- ABCDEFGHIJKLMNOPQRSTUVWXY
- abbrev
- abchp
- ADCCP
Expand Down Expand Up @@ -240,6 +241,7 @@ words:
- sortflag
- spasmle
- sprintf
- stringf
- stuvwxyz
- substr
- tekext
Expand Down

0 comments on commit 0e01314

Please sign in to comment.