Skip to content

Commit a3f005b

Browse files
Updating build script to always build debug, ...
Updating build script to always build debug, Updating test.cpp to not escape the wrapping quote, Updating TODO.md, Adding comment for escape function in StageInfo.cpp
1 parent 7e266de commit a3f005b

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

Build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ pushd Build || goto :error
88

99
cmake .. || goto :error
1010
cmake --build . --target Embed2C || goto :error
11-
cmake .. %* || goto :error
12-
cmake --build . -j 16 || goto :error
11+
cmake .. -DssLOG_LEVEL=DEBUG "%*" || goto :error
12+
cmake --build . -j 16 --config Debug || goto :error
1313

1414
popd
1515

Build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pushd ./Build
66

77
cmake ..
88
cmake --build . --target Embed2C
9-
cmake .. "$@"
9+
cmake .. -DssLOG_LEVEL=DEBUG -DCMAKE_BUILD_TYPE=Debug "$@"
1010
cmake --build . -j 16
1111

1212
popd

Examples/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ PassScriptPath: true
5555
Type: Git
5656
Value: "https://github.com/Neko-Box-Coder/System2.cpp.git"
5757
LibraryType: Header
58-
IncludePaths: ["./", "./External/System2"]
58+
IncludePaths: [".", "./External/System2"]
5959
Setup:
6060
Default:
6161
Default:

Src/runcpp2/Data/StageInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ namespace
155155
}
156156
}
157157

158+
//NOTE: This extracts substitutions and also allow escapes to happen for substitution characters.
159+
// To escape a substitution character, just repeat it. (i.e. {{text}} will be escaped as {text})
158160
void GetEscapedStringAndExtractSubstitutions( const std::string& processString,
159161
std::string& outEscapedString,
160162
std::vector<std::string>& outFoundSubstitutions,

TODO.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ TODO:
44
- Allow runcpp2 to be library
55
- Ability to compile runcpp2 as single cpp
66

7+
- Handle escape characters at the end
8+
- To avoid situation like this:
9+
- Substitution string: -I "{path}"
10+
- Substitution value: .\
11+
- Substituted string: -I ".\"
12+
- Where the path contains escape character which escaped the wrapping quotes
713
- Use <csignal> to handle potential segfaults
814
- Separate git and local source options
915
- Migrate to libyaml

0 commit comments

Comments
 (0)