Fossil SCM
Add the --no-opt option to the ./configure script. Fix the menu.js script to avoid the use of eval().
Commit
189adb9959fa4335038987bf44777a3e168a85da858d015955d2c8156c07d0b2
Parent
259074d364c1141…
2 files changed
+6
+2
-2
M
auto.def
+6
| --- auto.def | ||
| +++ auto.def | ||
| @@ -20,10 +20,11 @@ | ||
| 20 | 20 | with-see=0 => {Enable the SQLite Encryption Extension (SEE)} |
| 21 | 21 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 22 | 22 | static=0 => {Link a static executable} |
| 23 | 23 | fusefs=1 => {Disable the Fuse Filesystem} |
| 24 | 24 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 25 | + no-opt=0 => {Build without optimization} | |
| 25 | 26 | json=0 => {Build with fossil JSON API enabled} |
| 26 | 27 | } |
| 27 | 28 | |
| 28 | 29 | # sqlite wants these types if possible |
| 29 | 30 | cc-with {-includes {stdint.h inttypes.h}} { |
| @@ -135,10 +136,15 @@ | ||
| 135 | 136 | if {[opt-bool fossil-debug]} { |
| 136 | 137 | define-append EXTRA_CFLAGS -DFOSSIL_DEBUG |
| 137 | 138 | define CFLAGS {-g -O0} |
| 138 | 139 | msg-result "Debugging support enabled" |
| 139 | 140 | } |
| 141 | + | |
| 142 | +if {[opt-bool no-opt]} { | |
| 143 | + define CFLAGS {-g -O0} | |
| 144 | + msg-result "Builting without compiler optimization" | |
| 145 | +} | |
| 140 | 146 | |
| 141 | 147 | if {[opt-bool with-see]} { |
| 142 | 148 | define-append EXTRA_CFLAGS -DUSE_SEE |
| 143 | 149 | define USE_SEE 1 |
| 144 | 150 | msg-result "Enabling encryption support" |
| 145 | 151 |
| --- auto.def | |
| +++ auto.def | |
| @@ -20,10 +20,11 @@ | |
| 20 | with-see=0 => {Enable the SQLite Encryption Extension (SEE)} |
| 21 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 22 | static=0 => {Link a static executable} |
| 23 | fusefs=1 => {Disable the Fuse Filesystem} |
| 24 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 25 | json=0 => {Build with fossil JSON API enabled} |
| 26 | } |
| 27 | |
| 28 | # sqlite wants these types if possible |
| 29 | cc-with {-includes {stdint.h inttypes.h}} { |
| @@ -135,10 +136,15 @@ | |
| 135 | if {[opt-bool fossil-debug]} { |
| 136 | define-append EXTRA_CFLAGS -DFOSSIL_DEBUG |
| 137 | define CFLAGS {-g -O0} |
| 138 | msg-result "Debugging support enabled" |
| 139 | } |
| 140 | |
| 141 | if {[opt-bool with-see]} { |
| 142 | define-append EXTRA_CFLAGS -DUSE_SEE |
| 143 | define USE_SEE 1 |
| 144 | msg-result "Enabling encryption support" |
| 145 |
| --- auto.def | |
| +++ auto.def | |
| @@ -20,10 +20,11 @@ | |
| 20 | with-see=0 => {Enable the SQLite Encryption Extension (SEE)} |
| 21 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 22 | static=0 => {Link a static executable} |
| 23 | fusefs=1 => {Disable the Fuse Filesystem} |
| 24 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 25 | no-opt=0 => {Build without optimization} |
| 26 | json=0 => {Build with fossil JSON API enabled} |
| 27 | } |
| 28 | |
| 29 | # sqlite wants these types if possible |
| 30 | cc-with {-includes {stdint.h inttypes.h}} { |
| @@ -135,10 +136,15 @@ | |
| 136 | if {[opt-bool fossil-debug]} { |
| 137 | define-append EXTRA_CFLAGS -DFOSSIL_DEBUG |
| 138 | define CFLAGS {-g -O0} |
| 139 | msg-result "Debugging support enabled" |
| 140 | } |
| 141 | |
| 142 | if {[opt-bool no-opt]} { |
| 143 | define CFLAGS {-g -O0} |
| 144 | msg-result "Builting without compiler optimization" |
| 145 | } |
| 146 | |
| 147 | if {[opt-bool with-see]} { |
| 148 | define-append EXTRA_CFLAGS -DUSE_SEE |
| 149 | define USE_SEE 1 |
| 150 | msg-result "Enabling encryption support" |
| 151 |
+2
-2
| --- src/href.js | ||
| +++ src/href.js | ||
| @@ -35,12 +35,12 @@ | ||
| 35 | 35 | var g = JSON.parse(jx); |
| 36 | 36 | var isOperaMini = |
| 37 | 37 | Object.prototype.toString.call(window.operamini)==="[object OperaMini]"; |
| 38 | 38 | if(g.mouseover && !isOperaMini){ |
| 39 | 39 | document.getElementByTagName("body")[0].onmousemove=function(){ |
| 40 | - setTimeout("setAllHrefs();",g.delay); | |
| 40 | + setTimeout(setAllHrefs, g.delay); | |
| 41 | 41 | } |
| 42 | 42 | }else{ |
| 43 | - setTimeout("setAllHrefs();",g.delay); | |
| 43 | + setTimeout(setAllHrefs, g.delay); | |
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | antiRobotDefense() |
| 47 | 47 |
| --- src/href.js | |
| +++ src/href.js | |
| @@ -35,12 +35,12 @@ | |
| 35 | var g = JSON.parse(jx); |
| 36 | var isOperaMini = |
| 37 | Object.prototype.toString.call(window.operamini)==="[object OperaMini]"; |
| 38 | if(g.mouseover && !isOperaMini){ |
| 39 | document.getElementByTagName("body")[0].onmousemove=function(){ |
| 40 | setTimeout("setAllHrefs();",g.delay); |
| 41 | } |
| 42 | }else{ |
| 43 | setTimeout("setAllHrefs();",g.delay); |
| 44 | } |
| 45 | } |
| 46 | antiRobotDefense() |
| 47 |
| --- src/href.js | |
| +++ src/href.js | |
| @@ -35,12 +35,12 @@ | |
| 35 | var g = JSON.parse(jx); |
| 36 | var isOperaMini = |
| 37 | Object.prototype.toString.call(window.operamini)==="[object OperaMini]"; |
| 38 | if(g.mouseover && !isOperaMini){ |
| 39 | document.getElementByTagName("body")[0].onmousemove=function(){ |
| 40 | setTimeout(setAllHrefs, g.delay); |
| 41 | } |
| 42 | }else{ |
| 43 | setTimeout(setAllHrefs, g.delay); |
| 44 | } |
| 45 | } |
| 46 | antiRobotDefense() |
| 47 |