add config.h

This commit is contained in:
lyon1998 2022-04-14 18:55:11 +08:00
parent 51461774ff
commit ad808828e2
9 changed files with 23 additions and 12 deletions

View File

@ -11,7 +11,7 @@ include_directories(package/pikascript/pikascript-core)
include_directories(package/pikascript/pikascript-api)
include_directories(package/pikascript/pikascript-lib/PikaRunExternControl)
include_directories(package/pikascript/pikascript-lib/PikaRunExternControl)
include_directories(benchmark)
include_directories(config)
# include_directories(boot/demo01-led)
add_subdirectory(package/googletest)
add_subdirectory(package/pikascript)

View File

@ -1,5 +0,0 @@
#ifndef __PIKA_CONFIG__H
#define __PIKA_CONFIG__H
#undef PIKA_OPTIMIZE
#define PIKA_OPTIMIZE PIKA_OPTIMIZE_SPEED
#endif

View File

@ -1,3 +1,7 @@
# backup
cp config/pika_config.h config/pika_config_backup.h
cp config/pika_config_benchmark.h config/pika_config.h
bash ci_benchmark_times.sh 20
python3 ci_benchmark_select.py
@ -5,3 +9,6 @@ python3 ci_benchmark_select.py
rm benchmark_result_*.json
rm performance_data.json
echo
# restore backup
mv config/pika_config_backup.h config/pika_config.h

View File

View File

View File

@ -0,0 +1,2 @@
#undef PIKA_OPTIMIZE
#define PIKA_OPTIMIZE PIKA_OPTIMIZE_SPEED

View File

@ -0,0 +1,4 @@
#undef PIKA_BUILTIN_LIST_ENABLE
#define PIKA_BUILTIN_LIST_ENABLE 1
#undef PIKA_BUILTIN_DICT_ENABLE
#define PIKA_BUILTIN_DICT_ENABLE 1

View File

View File

@ -1,6 +1,9 @@
sh update-compiler.sh
rm build/test/pikascript_test
sh make.sh
build/test/pikascript_test
#build/benchmark/pikascript_benchmark --benchmark_format=json | tee benchmark_result.json
#build/test/pikascript_test --gtest_filter=args_*
# backup
cp config/pika_config.h config/pika_config_backup.h
cp config/pika_config_default.h config/pika_config.h && sh _gtest_once.sh && \
cp config/pika_config_builtin_list.h config/pika_config.h && sh _gtest_once.sh && \
cp config/pika_config_benchmark.h config/pika_config.h && sh _gtest_once.sh
# restore backup
mv config/pika_config_backup.h config/pika_config.h