Skip to content

Commit 6f064d5

Browse files
committed
add HXCPP_CATCH_SEGV to catch segfaults
1 parent b8d48c3 commit 6f064d5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Main.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function main()
7070
putEnv("HXCPP_SILENT", "1");
7171
putEnv("HXCPP_COMPILE_CACHE", Sys.getEnv("HOME") + "/hxcpp_cache");
7272
putEnv("HXCPP_CACHE_MB", "5000");
73+
putEnv("HXCPP_CATCH_SEGV", "1");
7374
Core.endGroup();
7475

7576
Sys.exit(runAllNamed(Tests.make(target)));

src/Tests.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function buildDemos(target:Target, ?demos:Array<String>, ?args:Array<Str
7878
{
7979
demos = CppDemos;
8080
Sys.println('\nSkipping some demos due to cpp build times\nBuilding ${demos.length} demo(s)...\n');
81-
args.push('-DHXCPP_COMPILE_CACHE=\'${Sys.getEnv("HOME") + "/hxcpp_cache"}\'');
81+
// args.push('-DHXCPP_COMPILE_CACHE=\'${Sys.getEnv("HOME") + "/hxcpp_cache"}\''); // Already added to env in Main
8282
}
8383
else
8484
{

0 commit comments

Comments
 (0)