nodejs-19.3.0-v8-oflags.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/tools/v8_gypfiles/toolchain.gypi 2022-12-14 03:28:45.000000000 -0800
  2. +++ b/tools/v8_gypfiles/toolchain.gypi 2022-12-29 02:22:55.469497497 -0800
  3. @@ -809,11 +809,11 @@
  4. # Don't use -O3 with sanitizers.
  5. ['asan==0 and msan==0 and lsan==0 \
  6. and tsan==0 and ubsan==0 and ubsan_vptr==0', {
  7. - 'cflags': ['-O3'],
  8. - 'cflags!': ['-O2'],
  9. + 'cflags': ['__OFLAGS_A1__'],
  10. + 'cflags!': ['__OFLAGS_R1__'],
  11. }, {
  12. - 'cflags': ['-O2'],
  13. - 'cflags!': ['-O3'],
  14. + 'cflags': ['__OFLAGS_A2__'],
  15. + 'cflags!': ['__OFLAGS_R2__'],
  16. }],
  17. ],
  18. }],
  19. @@ -857,11 +857,11 @@
  20. # Don't use -O3 with sanitizers.
  21. ['asan==0 and msan==0 and lsan==0 \
  22. and tsan==0 and ubsan==0 and ubsan_vptr==0', {
  23. - 'cflags': ['-O3'],
  24. - 'cflags!': ['-O2'],
  25. + 'cflags': ['__OFLAGS_A1__'],
  26. + 'cflags!': ['__OFLAGS_R1__'],
  27. }, {
  28. - 'cflags': ['-O2'],
  29. - 'cflags!': ['-O3'],
  30. + 'cflags': ['__OFLAGS_A2__'],
  31. + 'cflags!': ['__OFLAGS_R2__'],
  32. }],
  33. ],
  34. }],