mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add config.h
This commit is contained in:
parent
51461774ff
commit
ad808828e2
@ -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)
|
||||
|
@ -1,5 +0,0 @@
|
||||
#ifndef __PIKA_CONFIG__H
|
||||
#define __PIKA_CONFIG__H
|
||||
#undef PIKA_OPTIMIZE
|
||||
#define PIKA_OPTIMIZE PIKA_OPTIMIZE_SPEED
|
||||
#endif
|
@ -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
|
0
port/linux/config/pika_config.h
Normal file
0
port/linux/config/pika_config.h
Normal file
0
port/linux/config/pika_config_backup.h
Normal file
0
port/linux/config/pika_config_backup.h
Normal file
2
port/linux/config/pika_config_benchmark.h
Normal file
2
port/linux/config/pika_config_benchmark.h
Normal file
@ -0,0 +1,2 @@
|
||||
#undef PIKA_OPTIMIZE
|
||||
#define PIKA_OPTIMIZE PIKA_OPTIMIZE_SPEED
|
4
port/linux/config/pika_config_builtin_list.h
Normal file
4
port/linux/config/pika_config_builtin_list.h
Normal 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
|
0
port/linux/config/pika_config_default.h
Normal file
0
port/linux/config/pika_config_default.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user